And*_*510 7 networking node.js npm
它在npm用于安装node.js应用程序的依赖项时停止.但在中国境外没有任何问题.谁知道如何让它在旁边工作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 ...
Run Code Online (Sandbox Code Playgroud)
现在还有一个中文注册表:
$ npm config set registry http://r.cnpmjs.org
$ npm install
Run Code Online (Sandbox Code Playgroud)
它与registry.npmjs.org同步.
也许它会与欧洲注册局合作?
$ npm config set registry http://registry.npmjs.eu
$ npm install
Run Code Online (Sandbox Code Playgroud)
除非那也被阻止了?
中国的另一面镜子是 https://registry.npm.taobao.org/.
$ npm config set registry https://registry.npm.taobao.org/
$ npm install
Run Code Online (Sandbox Code Playgroud)
就用淘宝的镜像
npm install -g cnpm --registry=http://registry.npm.taobao.org
cnpm install -g your-lib-name
Run Code Online (Sandbox Code Playgroud)