开发者

NPM registry alternative to http://registry.npmjs.org/npm [closed]

开发者 https://www.devze.com 2023-03-13 11:43 出处:网络
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting answers.
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 5 years ago.

Improve this question

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

is there an alternative public repository, or any other way to continue working? Maybe using git clone for the dependencies?

Ralf


Update: Every URL in this post is expired, sorry

Just found this link that lists some mirrors:

http://blog.modulus.io/npm-mirrors

The listed ones as of this writing are:

  • http://registry.npmjs.org
  • http://registry.npmjs.eu
  • http://registry.npmjs.org.au
  • https://registry.nodejitsu.com
  • https://npm.strongloop.com

Specify the registry when installing:

$ npm install --registry http://registry.npmjs.org

Or update the registry permanently in the config:

$ npm config set registry http://registry.npmjs.org


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消