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

you can follow this thread https://github.com/npm/registry/issues/255

Darkensses avatar Jan 06 '18 20:01 Darkensses

Progress is being made... live update:

jenga2

mcquiggd avatar Jan 06 '18 20:01 mcquiggd

$ npm view require-from-string versions --json

[ "2.0.2" ]

omarefg avatar Jan 06 '18 20:01 omarefg

It´s Intel! i know it

DevAiyana avatar Jan 06 '18 21:01 DevAiyana

Workaround: You can copy node_module from the different project.

chipatel avatar Jan 06 '18 21:01 chipatel

You can check npm status updates here https://status.npmjs.org/

iamsainikhil avatar Jan 06 '18 21:01 iamsainikhil

It finally worked! :-)

zxxz avatar Jan 06 '18 21:01 zxxz

still having issues with require-from-string@^1.1.0

DGathagu avatar Jan 06 '18 21:01 DGathagu

Still the error.

leonardis avatar Jan 06 '18 21:01 leonardis

try: npm install npm@next -g , then install @angular/cli

kirkdmo avatar Jan 06 '18 21:01 kirkdmo

it works right now :)

Darkensses avatar Jan 06 '18 21:01 Darkensses

Here it came back working! :)

JrFernando avatar Jan 06 '18 21:01 JrFernando

RE: Here it came back working :) Same thing up here: It's aliiiive... It's aliiiive... Everything is back and running... Yeeeeeeeess :)

Tameshiwari avatar Jan 06 '18 22:01 Tameshiwari

npm just gave everyone free Saturday evening :)

radpl avatar Jan 07 '18 08:01 radpl

So i think this can be closed right?

jpitchardu avatar Jan 08 '18 03:01 jpitchardu

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.