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 ...
just use taobao's mirror
npm install -g cnpm --registry=http://registry.npm.taobao.org
cnpm install -g your-lib-name
Another mirror in China is https://registry.npm.taobao.org/.
$ npm config set registry https://registry.npm.taobao.org/
$ npm install
Perhaps it will work with the European registry?
$ npm config set registry http://registry.npmjs.eu
$ npm install
Unless that is blocked also?
There is a Chinese registry now too:
$ npm config set registry http://r.cnpmjs.org
$ npm install
It syncs with 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