FoundationPress icon indicating copy to clipboard operation
FoundationPress copied to clipboard

Npm install error " pathspec '4.0' "

Open DeiCha opened this issue 5 years ago • 6 comments

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

DeiCha avatar Oct 21 '18 10:10 DeiCha

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

beesmart avatar Oct 22 '18 11:10 beesmart

Same issue on Ubuntu 18.04 with Node 9.8.0

webcat12345 avatar Nov 30 '18 10:11 webcat12345

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

codeChrisM avatar Dec 18 '18 15:12 codeChrisM

Worked for me as well.

pavankumar0425 avatar Dec 19 '18 21:12 pavankumar0425

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.

brandon-pereira avatar Dec 22 '18 00:12 brandon-pereira

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

codingphasedotcom avatar Mar 06 '19 21:03 codingphasedotcom