olefredrik / FoundationPress

FoundationPress is a WordPress starter theme based on Foundation 6 by Zurb
https://foundationpress.olefredrik.com
MIT License
2.71k stars 871 forks source link

Npm install error " pathspec '4.0' " #1312

Open DeiCha opened 5 years ago

DeiCha commented 5 years ago

runing npm install returns error:

Unhandled rejection Error: Command failed: C:\Program Files\Git\mingw64\bin\git.EXE checkout 4.0
error: pathspec '4.0' 

fix that worked for me: update package.json line 42 from "gulp": "gulpjs/gulp#4.0", to "gulp": "4.0",

It may be related to gulp (https://github.com/gulpjs/gulp/issues/2078)

beesmart commented 5 years ago

Thanks @DeiCha, I ran into the same issue and your fix worked.

webcat12345 commented 5 years ago

Same issue on Ubuntu 18.04 with Node 9.8.0

codeChrisM commented 5 years ago

just upgraded to V10.14.2 and this resolved the issue for me as well

pavankumar0425 commented 5 years ago

Worked for me as well.

brandon-pereira commented 5 years ago

I had this issue as well, Changing package.json from "gulp": "github:gulpjs/gulp#4.0" to "gulp": "4.0" AND deleting my package-lock.json solved the issue.

The issue is the branch was deleted, for backwards compatibility can we keep the git branch active and maybe add a warning on postinstall?

I can help implement this if needed.

codingphasedotcom commented 5 years ago

just upgraded to V10.14.2 and this resolved the issue for me as well

Funny seeing you having the same issue as me bro lol what worked for me was updating node js to latest version using homebrew and then changing the gulp version in package.json to 4.0