Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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

like image 429
Ralf Sigmund Avatar asked Jun 17 '11 09:06

Ralf Sigmund


People also ask

What is default npm registry?

npmrc file. The default is typically set to the public npm registry at https://registry.npmjs.org/ .

How do I change npm registry settings?

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.

How do I find npm registry URL?

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.

What is registry Npmjs?

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.

What is the npm registry?

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

How to install packages using scope in NPM?

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

Does NPM init work on Raspberry Pi 3?

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.


2 Answers

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.

like image 38
Morten Siebuhr Avatar answered Oct 19 '22 20:10

Morten Siebuhr


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

like image 122
groovenectar Avatar answered Oct 19 '22 20:10

groovenectar