Search code examples
node.jsnetworkingnpm

`npm install` goes to dead in China


It halts when using npm to install dependencies for node.js applications. But works without any problem outside China. Who know ways to make it works beside VPN/SSH channel.

$ npm install
npm http GET https://registry.npmjs.org/jade
npm http GET https://registry.npmjs.org/formidable
# ... ... halt for hours and hours ... march 2014
# ... ... halts times after times ...

Solution

  • Perhaps it will work with the European registry?

    $ npm config set registry http://registry.npmjs.eu
    $ npm install
    

    Unless that is blocked also?