Pergunta

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

Foi útil?

Solução

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.

Outras dicas

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:

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top