Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Npm install error " pathspec '4.0' " #1312

Open
DeiCha opened this issue Oct 21, 2018 · 6 comments
Open

Npm install error " pathspec '4.0' " #1312

DeiCha opened this issue Oct 21, 2018 · 6 comments
Labels
build error Error with the build process

Comments

@DeiCha
Copy link

DeiCha commented Oct 21, 2018

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 (gulpjs/gulp#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
@ghost ghost mentioned this issue Oct 22, 2018
@beesmart
Copy link

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

@webcat12345
Copy link

Same issue on Ubuntu 18.04 with Node 9.8.0

@codeChrisM
Copy link

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

@pavankumar0425
Copy link

Worked for me as well.

@brandon-pereira
Copy link

brandon-pereira commented Dec 22, 2018

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build error Error with the build process
Projects
None yet
Development

No branches or pull requests

8 participants