NPM 注册表替代 http://registry.npmjs.org/npm [英] NPM registry alternative to http://registry.npmjs.org/npm
本文介绍了NPM 注册表替代 http://registry.npmjs.org/npm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
不幸的是,http://registry.npmjs.org/npm 已关闭,导致
unfortunately http://registry.npmjs.org/npm is down resulting in
$ npm install mime
npm ERR! Error: ucs {bad_utf8_character_code}: mime
npm ERR! at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:177:16)
npm ERR! at IncomingMessage.emit (events.js:81:20)
npm ERR! at HTTPParser.onMessageComplete (http.js:133:23)
npm ERR! at Socket.ondata (http.js:1228:22)
npm ERR! at Socket._onReadable (net.js:684:27)
npm ERR! at IOWatcher.onReadable [as callback] (net.js:177:10)
npm ERR! Report this *entire* log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR!
npm ERR! System Linux 2.6.38-8-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "mime"
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/rsi/projects/activiti.enricher/npm-debug.log
npm not ok
是否有替代的公共存储库,或任何其他方式继续工作?也许对依赖项使用 git clone ?
is there an alternative public repository, or any other way to continue working? Maybe using git clone for the dependencies?
拉尔夫
推荐答案
据我所知,没有任何公开的替代方案.在我的公司,我们最终做了一个内部镜像,我们也在其中发布了我们的内部 NPM 包.
There aren't any public alternatives, that I know of. At my company, we ended up doing an internal mirror, where we also publish our internal NPM packages.
有人告诉我这不是微不足道的 - 但绝对可行.
I'm told it's not quite trivial - but definitely doable.
这篇关于NPM 注册表替代 http://registry.npmjs.org/npm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文