2👍
I solved same problem with deleting cache files and package lock files.
rm -rf package-lock.json && npm cache clean
If you used yarn instead of npm, then
rm -rf yarn.lock && yarn cache clean
After removing lock files, install again
npm install
OR
yarn install --network-timeout 600000
Later, it might solve same problems.
0👍
Eventually I got it to work by using:
rm -rf node_modules/
// Removes node_modules folderrm -rf package-lock.json && npm cache clean --force
//Removes package-lock file and cleans cache forcefully (npm v5+)npm install
// do a fresh install
Thanks @luiseok
Source:stackexchange.com