-
Notifications
You must be signed in to change notification settings - Fork 867
Unhandled rejection Error: Command failed: /usr/bin/git checkout [email protected] #1316
Comments
I am getting the same error, I am on windows. |
I posted the same issue a little big ago. Frustrating. I think it's an issue getting the correct version of Gulp checked out. -Ron |
I've already posted solution: #1312 |
Hi DeiCha, That did not work for me. I got the same error. -Ron |
Strange, maybe package-lock.json din't updated when you've changed your package.json file. If I were you I should try:
When solving my problem I've tried:
Hope something helps. When googling about this I came to branch conflict problems. But i don't think it's the case when you do clean install. |
Reinstalling git as a clean install and changing: Thank you for your help! @DeiCha |
changing "gulp": "gulpjs/gulp#4.0", to "gulp": "4.0" helped me, thank you! |
I ran into the same wall that @RonEarl did. I'm a certified N00b, but the current version of the theme on Github comes with package-lock.json pre-installed, even though I'm not seeing it listed on the file list on Github. If I make @DeiCha 's change on line 42 and delete the package-lock.json file then I can get NPM install to work, and the package-lock.json reappears after install. I'm using git clone via Windows command line to install the theme, but I can't imagine why that'd auto-create the package-lock.json file. |
Thanks @DeiCha, changing "gulp": "gulpjs/gulp#4.0", to "gulp": "4.0" worked for me too |
Thanks @DeiCha, changing "gulp": "gulpjs/gulp#4.0", to "gulp": "4.0" works |
I believe what happened is that the gulpjs team deleted the branch |
On Mac OS X El Capitan 10.11.6 I am not an expert, but when i get it right version 6.11.x is recommended as highest version: I downgraded node to 6.11.5
changed package.json line 42: "gulp": "^4.0", and it works (for me) |
Thanks @DeiCha changing "gulp": "gulpjs/gulp#4.0", to "gulp": "4.0" helped me, thank you! |
fix following error on npm install: Error, Unhandled rejection Error: Command failed: /usr/local/bin/git checkout error: pathspec '4.0' did not match any file(s) known to git. error on gulp version see olefredrik/FoundationPress#1316
fix following error on npm install: Error, Unhandled rejection Error: Command failed: /usr/local/bin/git checkout error: pathspec '4.0' did not match any file(s) known to git. error on gulp version see olefredrik/FoundationPress#1316
You shouldn't need to downgrade node. All I did was this and it amended my package and package-lock files appropriately: |
I had to run |
The reference to |
Hi! Thanks for great work. I have problems with installing NPM and think that it might be since updating macOS.
How can this bug be reproduced?
What happened instead?
Unhandled rejection Error: Command failed: /usr/bin/git checkout [email protected]
error: pathspec '4.0' did not match any file(s) known to git.
node_modules/foundation-sites/package.json
) :The text was updated successfully, but these errors were encountered: