Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM command failed git checkout 4.0 #52

Open
Magnusvb opened this issue Nov 19, 2018 · 5 comments
Open

NPM command failed git checkout 4.0 #52

Magnusvb opened this issue Nov 19, 2018 · 5 comments

Comments

@Magnusvb
Copy link

Hi
I have cloned the repository. But when running
npm install
I get this error:

npm ERR! Command failed: /usr/local/bin/git checkout 4.0
npm ERR! error: pathspec '4.0' did not match any file(s) known to git.

And, I do not know if this is an NPM or Bones error...?

/Magnus

@Magnusvb
Copy link
Author

UPDATE.
It looks like the installation of Gulp 4 have changed. This line in package.json is no longer working:
"gulp": "github:gulpjs/gulp#4.0"

I followed this thread at Stackoverflow to solve the problem. First removing all traces of Gulp and then installing the CLI globally.

It seems to have fixed the problem with npm install

@sorcamarian
Copy link

sorcamarian commented Aug 7, 2019

Gulp v4 can be installed like this, directly from npm: npm install gulp@4

In my case, package.json pointed to the GitHub source:
"gulp": "git+https://github.com/gulpjs/gulp.git#4.0",

https://stackoverflow.com/a/52942546/3102325

@null2014
Copy link

when I clone
npm install https://github.com/null2014/vuejs.git

then something error, do you know why?

npm ERR! code 1
npm ERR! Command failed: git checkout HEAD
npm ERR! error: pathspec 'HEAD' did not match any file(s) known to git

@Jayaramulu
Copy link

after installing gulp v4, my problem not solved, any help here

npm ERR! code 1
npm ERR! Command failed: /usr/bin/git checkout ^0.4.3
npm ERR! error: pathspec '^0.4.3' did not match any file(s) known to git.

@danielczestki
Copy link

ERR! code 1
npm ERR! Command failed: /usr/bin/git checkout ~5.1.4
npm ERR! error: pathspec '~5.1.4' did not match any file(s) known to git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants