是墙的问题还是什么,怎么我用了 vpn 还是卡在那里 ?
1
cxbig 2015-10-14 15:24:04 +08:00 via iPhone
墙的可能性比较大,主要就是各种组件的 git 仓库 url 访问不成功或很慢。
|
2
rangercyh 2015-10-14 15:25:59 +08:00 1
建议使用淘宝的国内镜像:--registry=http://registry.npm.taobao.org
|
3
zythum 2015-10-14 16:01:59 +08:00
可以试试 cnpm 。 有可能背墙了。
|
4
chairuosen 2015-10-14 16:02:59 +08:00
一个斜杠在那转悠是下载呢
|
5
somethin 2015-10-14 16:10:58 +08:00
加个--verbose 看看问题出在哪儿
|
6
0x1406F40 OP registry 加上了, proxy 也用上了,但是每到这个地方斜杠就打转个不停,再也不更新了。
verbose 信息 -------------------- npm http 304 https://registry.npm.taobao.org/yargs npm verb headers { server: 'nginx/1.1.19', npm verb headers date: 'Wed, 14 Oct 2015 08:39:47 GMT', npm verb headers connection: 'keep-alive', npm verb headers etag: '"2a9ba-y4tzkZnybbf80ZBheSTfvg"', npm verb headers 'x-readtime': '523' } npm verb etag https://registry.npm.taobao.org/yargs from cache npm verb get saving yargs to /Users/mac/.npm/registry.npm.taobao.org/yargs/.cache.json npm verb addNamed "3.27.0" is a plain semver version for yargs npm verb afterAdd /Users/mac/.npm/yargs/3.27.0/package/package.json not in flight; writing npm verb afterAdd /Users/mac/.npm/yargs/3.27.0/package/package.json written / |
7
qqqppp9998 2015-10-14 23:08:31 +08:00
用 cnpm 吧,应该会快不少
|