angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Cannot install @angular/cli because of dependency issue

Open DirkWillem opened this issue 8 years ago • 76 comments

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 avatar Jan 06 '18 19:01 DirkWillem

@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.

randinterval avatar Jan 06 '18 19:01 randinterval

temporal solution: npm install https://github.com/floatdrop/require-from-string/tarball/v1.1.0 --save npm install

EstebanFuentealba avatar Jan 06 '18 19:01 EstebanFuentealba

I'm getting this issue too!

paulimfavarato avatar Jan 06 '18 19:01 paulimfavarato

@EstebanFuentealba temp solution works like a charm

bnymncoskuner avatar Jan 06 '18 19:01 bnymncoskuner

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

Feroz-Istar avatar Jan 06 '18 19:01 Feroz-Istar

Temp solution doesnt work when i want to install fresh -g cli: sudo npm install -g @angular/cli@latest

kasik96 avatar Jan 06 '18 19:01 kasik96

facing the same issue.. :( even npm install doesn't work.

SameeraMadushan avatar Jan 06 '18 19:01 SameeraMadushan

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.

patrickoliveras avatar Jan 06 '18 19:01 patrickoliveras

Yep, Vue CLI and Create-Nuxt-App seem to have identical problem...

Sigh...

mcquiggd avatar Jan 06 '18 19:01 mcquiggd

Same issue as well. Looks like it's not on angular-cli only. It's on the registry itself. :(

w3kp avatar Jan 06 '18 19:01 w3kp

@patrickoliveras if you delete your npm account, it shouldn't delete the npm packages

ocombe avatar Jan 06 '18 19:01 ocombe

This is the dude, if anyone is interested in republishing the needed versions of the various packages to npm: https://github.com/floatdrop

patrickoliveras avatar Jan 06 '18 19:01 patrickoliveras

I just started to learn Angular 5 and reached to this issue post. Just imagine my feelings about my learning trip ^_^

WahidBitar avatar Jan 06 '18 19:01 WahidBitar

@WahidBitar it is not an angular related issue. It's something with npm. Check this issue https://github.com/npm/registry/issues/255

bnymncoskuner avatar Jan 06 '18 19:01 bnymncoskuner

@WahidBitar I just started my final year research project. -_- how lucky i am.

SameeraMadushan avatar Jan 06 '18 19:01 SameeraMadushan

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

Jasnan avatar Jan 06 '18 19:01 Jasnan

@ocombe Hm. You learn a bit everyday! So maybe he just wants the world to get a bit toasty.

patrickoliveras avatar Jan 06 '18 19:01 patrickoliveras

@bnymncoskuner Yes I know but it was a pain in the a** till I knew it :D

WahidBitar avatar Jan 06 '18 19:01 WahidBitar

to delete an account from npm you have to email the npm support :-/ if they really removed his account, then they fu**** up hard!

ocombe avatar Jan 06 '18 19:01 ocombe

is like Alfred said in the Batman movie: some people just want to see the world burn

arianlopezc avatar Jan 06 '18 19:01 arianlopezc