由于require-from-string而使用npm安装Angular时出错

Fer*_*qui 21 install node.js angular-cli angular

如何解决此错误,因为我无法安装Angular.

请参阅以下例外:

C:\Users\absin\node>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:\Users\absin\AppData\Roaming\npm-cache\_logs\2018-01-06T19_07_00_000Z-debug.log
Run Code Online (Sandbox Code Playgroud)

即使在时间解决之后:

npm install https://github.com/floatdrop/require-from-string/tarball/v1.1.0 --save
npm install
Run Code Online (Sandbox Code Playgroud)

仍然得到这个 错误

Jus*_*ite 8

如问题链接中所述:

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

更新:

看来他们正在研究它.用于返回404的require-from-string页面,但至少现在它在NPM的网站上加载了正确的页面:https://www.npmjs.com/package/require-from-string

似乎npm install还没有完成.

更新2:

NPM的官方回应:https://status.npmjs.org/incidents/41zfb8qpvrdj

更新3:问题似乎得到解决.


Lij*_*ijo 2

在此输入图像描述

NPM 注册表出现一些问题,一些软件包被删除。他们正在恢复它......它将很快可用

临时解决方案使用已运行的项目或旧项目中缺少的包。