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

https://www.npmjs.com/~floatdrop Looks like it's up, but the packages aren't there.

patrickoliveras avatar Jan 06 '18 19:01 patrickoliveras

Same here @WahidBitar ahah I'm trying to dockerize my MEAN Stack but it fails to build due to that issue...

cesar3030 avatar Jan 06 '18 19:01 cesar3030

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.

bnymncoskuner avatar Jan 06 '18 19:01 bnymncoskuner

Left pad all over again.

randinterval avatar Jan 06 '18 19:01 randinterval

NPM is broken =(((((

bjcCin avatar Jan 06 '18 19:01 bjcCin

when will npm be fixed?

krreet avatar Jan 06 '18 19:01 krreet

It seems like it is back on https://www.npmjs.com/package/require-from-string

bnymncoskuner avatar Jan 06 '18 19:01 bnymncoskuner

@EstebanFuentealba temporary solutions seems to work but breaks again after installing other new npm packages. ❤️ 🗡

w3kp avatar Jan 06 '18 19:01 w3kp

It is fixed already. Go and try again. I was able to install

arianlopezc avatar Jan 06 '18 19:01 arianlopezc

@arianlopezc I am facing the same error even now

svinesh3691 avatar Jan 06 '18 19:01 svinesh3691

me tooo same error @arianlopezc @svinesh3691

CArenaV avatar Jan 06 '18 19:01 CArenaV

not working...

paulimfavarato avatar Jan 06 '18 19:01 paulimfavarato

Npm is aware of this issue and working on it, it should be fixed soon

bnymncoskuner avatar Jan 06 '18 19:01 bnymncoskuner

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

arianlopezc avatar Jan 06 '18 19:01 arianlopezc

https://twitter.com/npmstatus/status/949728719450460161

AarowanDusk avatar Jan 06 '18 19:01 AarowanDusk

Is there some ideas like, degrading to some older version of NPM ?

svinesh3691 avatar Jan 06 '18 19:01 svinesh3691

@WahidBitar here we go😂😂 it's our first step upgrading our project to angular 5 💃

bassem-dh avatar Jan 06 '18 19:01 bassem-dh

It isn't a problem with npm, it's one repository that's broken.

patrickoliveras avatar Jan 06 '18 19:01 patrickoliveras

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

patrickoliveras avatar Jan 06 '18 19:01 patrickoliveras

use yarn

tsaicharit avatar Jan 06 '18 19:01 tsaicharit