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! <[email protected]>
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
npmrc file. The default is typically set to the public npm registry at https://registry.npmjs.org/ .
Run the npm config list command to see what variables are set. If you run this in a project folder with an . npmrc file you should see its overriding configuration settings in the folder, and the system global settings after that.
You can show the registry of a specific package with the npm view command. When you use npm config get registry you will see the default registry.
The public npm registry is a database of JavaScript packages, each comprised of software and metadata. Open source developers and developers at companies use the npm registry to contribute packages to the entire community or members of their organizations, and download packages to use in their own projects.
As you can read here, the npm Registry is a public collection of packages of open-source code for Node.js, front-end web apps and the JavaScript community at large. In a standard install of npm, the registry is set to https://registry.npmjs.org/.
To install packages using scope use: npm install @my-org/mypackage whenever you install any packages from scope @my-orgnpm will search in the registry setting linked to scope @my-orgfor the registry url. Set npm registry locally for a project
I have been using npm for other projects recently and it worked fine but now will not work for any project (Including clean npm init) This is on a Raspberry pi 3 running on my home network with no proxy requirements. All other machines both linux and windows are working fine.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With