由于 require-from-string 使用 npm 安装 Angular 时出错 [英] Error installing Angular using npm due to require-from-string

查看:21
本文介绍了由于 require-from-string 使用 npm 安装 Angular 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How to resolve this error as I am not able to install 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

即使在临时解决方案之后:

even after temporal solution:

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

仍然得到这个

推荐答案

NPM 注册表的一些问题 一些包被删除了.他们正在恢复它...很快就会提供

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

Temp solution use the missing package from already running projects that or older projects.

这篇关于由于 require-from-string 使用 npm 安装 Angular 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆