Giter Site home page Giter Site logo

Comments (13)

bacoords avatar bacoords commented on May 29, 2024

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.

mbtocalli avatar mbtocalli commented on May 29, 2024

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.

bacoords avatar bacoords commented on May 29, 2024

Yes when you change node versions you'll want to delete node_modules and package-lock.json and do a fresh install

from understrap.

mbtocalli avatar mbtocalli commented on May 29, 2024

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.

pattonwebz avatar pattonwebz commented on May 29, 2024

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.

mbtocalli avatar mbtocalli commented on May 29, 2024

typing git --version i get:
'git' is not recognized as an internal or external command,
operable program or batch file.

from understrap.

pattonwebz avatar pattonwebz commented on May 29, 2024

That seems to be the issue: ' gitisn't available in the terminal you are running the install. I don't quite understand whygit` 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.

mbtocalli avatar mbtocalli commented on May 29, 2024

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.

pattonwebz avatar pattonwebz commented on May 29, 2024

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.

mbtocalli avatar mbtocalli commented on May 29, 2024

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.

mbtocalli avatar mbtocalli commented on May 29, 2024

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.

IanDelMar avatar IanDelMar commented on May 29, 2024

I'm not sure if this is a problem specific to Understrap. Is it reproducible?

from understrap.

JamesVanWaza avatar JamesVanWaza commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.