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

Getting this error when ever i want to do npm install inside the app folder #36

Open
saugatpahari opened this issue Jul 11, 2022 · 1 comment

Comments

@saugatpahari
Copy link

npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command C:\Program Files\nodejs\node.exe C:\Users\pahar\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\pahar\AppData\Local\npm-cache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! The git reference could not be found
npm ERR! npm ERR! command git --no-replace-objects checkout 4.0
npm ERR! npm ERR! error: pathspec '4.0' did not match any file(s) known to git
npm ERR!

@saugatpahari saugatpahari changed the title Getting this error when ever i want to do npm run inside the app folder Getting this error when ever i want to do npm install inside the app folder Jul 11, 2022
@dermatologist
Copy link
Member

Try

npm cache clear
git config --global url."https://".insteadOf 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

2 participants