从 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/