1
zrp1994 Aug 5, 2015
试试cnpm吧
|
2
neone Aug 5, 2015
可以试试淘宝的镜像。http://npm.taobao.org/
|
3
newghost OP |
4
atan Aug 5, 2015
已经习惯命令行用proxychains4了
|
5
sjtlqy Aug 5, 2015
日了他
|
6
czheo Aug 5, 2015 via iPhone
感觉比gem快
|
7
pengfei Aug 5, 2015
你的怎么这么黑 一进来 画风转的太快 晃眼
|
8
lujiajing1126 Aug 5, 2015
@newghost 不会啊,定义registry就会很快呀
|
9
TakanashiAzusa Aug 5, 2015
现在都是cnpm装了。。
|
10
newghost OP @lujiajing1126
一直在转呀转呀转…… Welcome to Git (version 1.8.4-preview20130916) Run 'git help git' to display the help index. Run 'git help <command>' to display help for specific commands. I304716@PVGD50816637A /D/ $ npm install -g cnpm --registry=https://registry.npm.taobao.org npm ERR! Windows_NT 6.1.7601 npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\b in\\npm-cli.js" "install" "-g" "cnpm" "--registry=https://registry.npm.taobao.org" npm ERR! node v0.12.7 npm ERR! npm v2.11.3 npm ERR! code ENOENT npm ERR! errno ENOENT npm ERR! syscall getaddrinfo npm ERR! enoent getaddrinfo ENOENT npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent npm ERR! Please include the following file with any support request: npm ERR! d:\ourjs-ppt\npm-debug.log I304716@PVGD50816637A /D/ $ npm install -g cnpm --registry=https://registry.npm.taobao.org / |
12
plantain Aug 5, 2015
npm --registry https://registry.npm.taobao.org install socket.io
|
13
Coyote Aug 5, 2015
同感.....正在鼓捣的时候就各种问题, 很多时候淘宝源不同步, 用淘宝的方法同步太费劲额
官方源经常 校验sum出错 服了, 同求方案 |
14
denghongcai Aug 5, 2015
cnpm不会影响node-gyp解决编译依赖时下载node源码的路径,网络问题经常导致下载回来的tar.gz校验失败……
要稳定用,挂VPN或者设置HTTP_PROXY吧 |
15
Andy1999 Aug 5, 2015 via iPhone
开个Shadowsocks
|
16
jiangzhuo Aug 5, 2015
是你网不好吧,我记得NPM最近刚升级过硬件啊
|
17
kawaiiushio Aug 5, 2015
@newghost 装不了 cnpm 的包就 alias 吧
|
18
xuhaoyangx Aug 6, 2015
挂上精品网的线路,瞬间复活
|
19
lalawow Aug 6, 2015
可能是要科学的上网才行
|
20
alsotang Aug 6, 2015
cnpm
|
22
vix Aug 10, 2015
最近正好在弄这个... 除了cnpm之外, 发现可以在内网机器上搭个sinopia, . 能cache包, 也能发布自己的module. 如果还是不行只能给那个机器上科学上网了...抛砖引玉...
|
23
heaventear Mar 27, 2017
一劳永逸的解决方法是挂个梯子,我用的是天路加速器,效果挺好, https://91tianlu.com
|