angularjs - npm 错误! 404 '@reactivex/rxjs' 不在 npm 注册表中

标签 angularjs npm webpack nexus artifactory

从 NPM 安装此软件包时出现问题。尝试安装,因为它是 Angular2 的一个依赖

错误:

npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "@reactivex/rxjs@5.0.0-alpha.6"
npm ERR! node v4.2.3
npm ERR! npm  v2.14.7
npm ERR! code E404

npm ERR! 404 Not Found: @reactivex/rxjs
npm ERR! 404 
npm ERR! 404 '@reactivex/rxjs' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

最佳答案

事实证明,问题是我们使用 Artifactory 作为私有(private) NPM 存储库。 Artifactory 不支持范围,即 @reactivex 与 Angular。 @ 是 NPM 的新作用域功能。经过一番研究后发现某些版本的 Sonatype Nexus NPM 存储库也存在同样的错误。

直接切换到NPM,问题就解决了。

关于angularjs - npm 错误! 404 '@reactivex/rxjs' 不在 npm 注册表中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34114935/

相关文章:

angularjs - angularjs中单向绑定(bind)和双向绑定(bind)的区别

AngularJs ui-router成功转换获取 Controller

node.js - 在本地安装另一个 Sails.js 版本

javascript - 有时会嵌入错误的 svg。在React/Redux/Webpack项目中使用react-inlinesvg

debugging - 在 VS2017 中调试 Aurelia webpack typescript 应用程序

javascript - angularjs-一个 Controller 在另一个 Controller 中的调用方法

node.js - npm 包依赖项未安装

npm - 有没有办法在运行 "npm init"时在关键字中包含空格?

webpack - 为什么要在 CommonJS require.ensure() 中处理依赖项列表?

javascript - 默认选择的选项在 angularjs 中不起作用