由于我无法安装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
仍然得到这个
NPM注册表出现一些问题,某些软件包被删除。 他们正在恢复它…很快就会面世
临时解决方案使用已经运行的项目或较旧项目中缺少的软件包。