由于我无法安装 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
still getting this ![error](https://i.stack.imgur.com/HzQTn.png)
如问题链接中所述:
时间解:
npm install https://github.com/floatdrop/require-from-string/tarball/v1.1.0 --save
npm install
UPDATE:
看来他们正在努力。 require-from-string 页面过去会返回 404,但至少现在它会在 NPM 网站上加载正确的页面:https://www.npmjs.com/package/require-from-string https://www.npmjs.com/package/require-from-string
似乎仍然没有解决npm install
yet.
更新2:
NPM官方回应:https://status.npmjs.org/incidents/41zfb8qpvrdj https://status.npmjs.org/incidents/41zfb8qpvrdj
更新 3:问题似乎已解决。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)