相关疑难解决方法(0)

由于require-from-string而使用npm安装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 …
Run Code Online (Sandbox Code Playgroud)

install node.js angular-cli angular

21
推荐指数
2
解决办法
3470
查看次数

标签 统计

angular ×1

angular-cli ×1

install ×1

node.js ×1