Cannot install @angular/cli because of dependency issue
When I try to install @angular/cli, I get the following error:
npm install -g @angular/cli@latest
npm ERR! code ETARGET
npm ERR! notarget No matching version found for require-from-string@^1.1.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'cosmiconfig'
npm ERR! notarget
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/dirk/.npm/_logs/2018-01-06T18_58_49_094Z-debug.log
Versions
N/A
Repro steps
Run
npm install @angular/cli@latest
Observed behavior
Angular CLI does not install
Desired behavior
Angular CLI installs
Mention any other details that might be useful (optional)
The package require-from-string seemed to be gone from NPM for a while, but also seems to be back now
https://www.npmjs.com/~floatdrop Looks like it's up, but the packages aren't there.
Same here @WahidBitar ahah I'm trying to dockerize my MEAN Stack but it fails to build due to that issue...
If you have angular-cli installed already, you can generate a new project and try the temp solution @EstebanFuentealba suggested. It is working for now.
Left pad all over again.
NPM is broken =(((((
when will npm be fixed?
It seems like it is back on https://www.npmjs.com/package/require-from-string
@EstebanFuentealba temporary solutions seems to work but breaks again after installing other new npm packages. ❤️ 🗡
It is fixed already. Go and try again. I was able to install
@arianlopezc I am facing the same error even now
me tooo same error @arianlopezc @svinesh3691
not working...
Npm is aware of this issue and working on it, it should be fixed soon
Something is really wrong with NPM guys. I installed and this was the message:
- @angular/[email protected] added 177 packages, removed 55 packages, updated 98 packages and moved 8 packages in 50.173s
https://twitter.com/npmstatus/status/949728719450460161
Is there some ideas like, degrading to some older version of NPM ?
@WahidBitar here we go😂😂 it's our first step upgrading our project to angular 5 💃
It isn't a problem with npm, it's one repository that's broken.
Although, the npm team is also working on this issue
- https://github.com/npm/npm/issues/19534#issuecomment-355770947
- https://github.com/npm/registry/issues/255
use yarn