FoundationPress
FoundationPress copied to clipboard
Npm install error " pathspec '4.0' "
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)
- OS & version: Windows 10
- Node version: Tested this bug on 6.9.0 and 8.11.3 (switched versions with nvm for windows)
- FoundationPress version: 2.10.4
Thanks @DeiCha, I ran into the same issue and your fix worked.
- OS & version: Windows 8.1
- Node version: 6.11.0
- FoundationPress version: 2.10.4
Same issue on Ubuntu 18.04 with Node 9.8.0
just upgraded to V10.14.2 and this resolved the issue for me as well
Worked for me as well.
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.
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