Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
284 views
in Technique[技术] by (71.8m points)

node.js - Error installing Angular using npm due to require-from-string

How to resolve this error as I am not able to install Angular.

Please see the below exception:

C:Usersabsin
ode>npm install -g @angular/cli
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!     C:UsersabsinAppDataRoaming
pm-cache\_logs2018-01-06T19_07_00_000Z-debug.log

even after temporal solution:

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

still getting this error

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

as stated in the issue link:

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

UPDATE:

It appears they are working on it. The require-from-string page used to return a 404, but at least now it loads the correct page on NPM's website: https://www.npmjs.com/package/require-from-string

Still doesn't appear to be working through npm install yet.

UPDATE 2:

An official response from NPM: https://status.npmjs.org/incidents/41zfb8qpvrdj

UPDATE 3: issue seems to be resolved.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...