lemonstand / lscloud-theme-bones

☠️ A bare-bones theme that uses Foundation, Sass and jQuery
https://lemonstand.com
10 stars 6 forks source link

NPM command failed git checkout 4.0 #52

Open Magnusvb opened 6 years ago

Magnusvb commented 6 years ago

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 commented 6 years ago

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 commented 5 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

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