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
@DirkWillem Yes, It was working fine few hours ago, but broke in last few hours. I'm unable to create new project due to this:
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! /home/saad/.npm/_logs/2018-01-06T19_02_10_419Z-debug.log
Note: Creating new project via ng new is also no longer working.
temporal solution:
npm install https://github.com/floatdrop/require-from-string/tarball/v1.1.0 --save
npm install
I'm getting this issue too!
@EstebanFuentealba temp solution works like a charm
same issue i am facing here is post stackoverflow link
temp solution is working but i am not able to create a new project using ng new command
Temp solution doesnt work when i want to install fresh -g cli:
sudo npm install -g @angular/cli@latest
facing the same issue.. :( even npm install doesn't work.
Some russian guy (floatdrop) deleted his account on npm. There are various packages that angular/cli, Vue.js and a whole lot of other projects that depended on his stuff.
Yep, Vue CLI and Create-Nuxt-App seem to have identical problem...
Sigh...
Same issue as well. Looks like it's not on angular-cli only. It's on the registry itself. :(
@patrickoliveras if you delete your npm account, it shouldn't delete the npm packages
This is the dude, if anyone is interested in republishing the needed versions of the various packages to npm: https://github.com/floatdrop
I just started to learn Angular 5 and reached to this issue post. Just imagine my feelings about my learning trip ^_^
@WahidBitar it is not an angular related issue. It's something with npm. Check this issue https://github.com/npm/registry/issues/255
@WahidBitar I just started my final year research project. -_- how lucky i am.
It seems like npm is not able to find the package require-from-string. So I tried yarn and it worked. Yarn allows you to choose a version for require-from-string
@ocombe Hm. You learn a bit everyday! So maybe he just wants the world to get a bit toasty.
@bnymncoskuner Yes I know but it was a pain in the a** till I knew it :D
to delete an account from npm you have to email the npm support :-/ if they really removed his account, then they fu**** up hard!
is like Alfred said in the Batman movie: some people just want to see the world burn