node.js - 由于 require-from-string 导致使用 npm 安装 Angular 时出错

标签 node.js angular installation angular-cli

由于我无法安装 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

仍然得到这个 error

最佳答案

如问题链接中所述:

时间解决方案: npm install https://github.com/floatdrop/require-from-string/tarball/v1.1.0 --save npm 安装

更新:

看来他们正在努力。 require-from-string 页面曾经返回 404,但至少现在它在 NPM 的网站上加载了正确的页面:https://www.npmjs.com/package/require-from-string

似乎还没有通过 npm install 工作。

更新 2:

来自 NPM 的官方回复:https://status.npmjs.org/incidents/41zfb8qpvrdj

更新 3:问题似乎已解决。

关于node.js - 由于 require-from-string 导致使用 npm 安装 Angular 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48130877/

相关文章:

javascript - 修改 Mongoose 对象文字结果不起作用

node.js - 在 pg-promise 中编写子查询的好方法

javascript - 如何在next.js中重新获取客户端的api数据?

javascript - BigQuery 一个数据字段中有多种数据类型

angular - 用于包裹 Angular Material 输入的组件不显示错误样式

c++ - 为什么我收到错误 "configure: error: Cannot find glib: Is glib-config in path?"?

java - MAC OS AppleScript - 静默安装 Java?

python - SciPy 安装和测试后的奇怪文件

javascript - 在 Angular 中单击时重置 rxjs 间隔

angular - 如何在angular 7中将内容类型设置为multipart/form-data