Comments (13)
I would try using an older version of node. The recommended version is 16. It's possible that some of the dependencies don't work with 21.
from understrap.
Thanks for your responde
I just change to 16.20.2 using nvm
I already tried with 18.16.0 which was the one I used before update to 21.3.0
Still have the same error after npm run watch
Do i have to delete node_modules and reinstall it?
from understrap.
Yes when you change node versions you'll want to delete node_modules and package-lock.json and do a fresh install
from understrap.
After changing node version to 16.20.2, deleting node_modules folder and package-lock.json file I do a fresh install using "npm install". This is what I get
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent An unknown git error occurred
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users***\AppData\Local\npm-cache_logs\2023-12-04T17_19_38_978Z-debug-0.log
from understrap.
How are you getting the repo to work with?
The error message that you see indicates that it can't use git
so wondering if it's installed on your system and available to call from the terminal that you are running npm install
from. You can check by typing git --version
in the terminal.
I just tested with node v16.19.0 and got the installer to work on my side.
from understrap.
typing git --version i get:
'git' is not recognized as an internal or external command,
operable program or batch file.
from understrap.
That seems to be the issue: ' gitisn't available in the terminal you are running the install. I don't quite understand why
git` is needed for the installation or what package is causing it, but if you can install git in that terminal I think the issue will be solved.
from understrap.
I honestly dont understand what is going on. A few hours ago i was working without a problem. Console suggest me to update caniuse-lite:
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
I updated it and after that it doesnt works anymore.
Now i try "npm install git" and i get this:
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent An unknown git error occurred
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
from understrap.
Yeah, it is strange. What operating system are you using, and what terminal are you using to run the npm install
?
npm install git
isn't likely to work as git is a system-level software instead of a javascript package.
Knowing what OS and terminal you are using might help us figure out why git
is not available and how to make it be available there for you.
from understrap.
Thanks a lot for your help!
Im using Windows 10 Home 64 bits and my local server is Local (https://localwp.com/). I'm using the site shell provided by local, i think is the Windows console
from understrap.
BTW, I solved it simply by deleting the "node_modules" folder and copying the same folder from another local backup installation. After doing that, the command "npm run watch" works as expected so I presume git is already installed at a system-level, right?
Even though I can continue working now, I would like to know how to properly fix this issue.
from understrap.
I'm not sure if this is a problem specific to Understrap. Is it reproducible?
from understrap.
I'm not sure if this is a problem specific to Understrap. Is it reproducible?
@bacoords and @IanDelMar I think @mbtocalli has the issue solved, he should test it with 1.2.4
to see if the error is still happening.
from understrap.
Related Issues (20)
- Woocommerce Mini Cart Widget Stopped working with Understrap theme HOT 2
- Please provide a short summary of the problem (approx. 50 characters) HOT 6
- Theme contains outdated copies of Woocommerce template files HOT 5
- I can't figure out a way to make tagline appear in the header area. HOT 2
- RollupError: Unexpected character '@' HOT 4
- Potential typo in phpstan.neon.dist HOT 1
- Add IE Support for using bootstrap container classes in the block editor
- outdated woocommerce template files HOT 6
- The style.min.css file is not being linked to the page HOT 4
- Feature Request: Add `.nvmrc` file with the needed version of node/npm HOT 3
- wordpress navbar toggle not working after log out HOT 4
- Accessing Bootstrap javascript constructors HOT 11
- Can we customize understrap_post_nav(); so it only gets prev/next from a specific category? HOT 18
- How to properly add additional js files HOT 1
- Release 1.2.4 Tracking Issue HOT 4
- Update to WPCS 3.0 (w/ PHP 8.2 support)
- Unable to build or run understrap projects - SyntaxError: Unexpected token '?' in file node_modules/lilconfig/src/index.js:161 HOT 1
- Optimize color palette generation for improved performance
- 5.3 Support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from understrap.