'I'm getting these NPM errors when I'm trying to run npm install command inside a project directory [closed]
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
Solution 1:[1]
This is solution.
on Terminal, move to your project route.
git remote update
git fetch
The reason is your branch wasn't updated!
I wish to solve your problem.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | TG PIZZA BOY |
