【发布时间】:2018-06-16 06:51:21
【问题描述】:
由于我无法安装 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
即使在临时解决方案之后:
npm install https://github.com/floatdrop/require-from-string/tarball/v1.1.0 --save
npm install
【问题讨论】:
-
节点版本 v8.9.4 和 npm 5.6.0
-
看看我添加的问题链接。他们给人的印象是这很快就会解决。魔法! :)
-
我在尝试创建一个全新的 React 应用时遇到了同样的问题。看来 npm 包不见了。此外,
read-all-stream-3.1.0也发生了非常相似的事情。好像有什么事情发生了...... -
我在将 Angular 应用程序部署到 Heroku 时遇到了同样的问题
标签: node.js angular installation angular-cli