How to resolve this error as I am not able to install Angular.
Please see the below exception:
C:\\Users\\absin\\node>npm install -g @angular/cli
some problem with NPM registry some of the packages got deleted. They are restoring it... it will be available shortly
Temp solution use the missing package from already running projects that or older projects.
as stated in the issue link:
temporal solution:
npm install https://github.com/floatdrop/require-from-string/tarball/v1.1.0 --save
npm install
UPDATE:
It appears they are working on it. The require-from-string page used to return a 404, but at least now it loads the correct page on NPM's website: https://www.npmjs.com/package/require-from-string
Still doesn't appear to be working through npm install
yet.
UPDATE 2:
An official response from NPM: https://status.npmjs.org/incidents/41zfb8qpvrdj
UPDATE 3: issue seems to be resolved.
Even if https://status.npmjs.org/ says that it s all ok now,
the problem persist here
npm is having issues. This should just work.
I had the same issue. So when I used yarn
it worked well and not having any problem to create new projects also.
yarn global add @angular/cli
again, when you create new app ng new newapp
it will fail because at this moment npm is not able to find a package called require-from-string
. But the you can run yarn
to install all the packages. Yarn will ask which version of the require-from-string
is needed. you can choose it.
npm registry issue is now fixed according to https://status.npmjs.org/incidents/41zfb8qpvrdj
Solution
rm ./package-lock.json
git commit -am "Removed broken package-lock.json file."
git push heroku master