双十一买的阿里云 npm install 很慢怎么办……

2019 年 11 月 17 日
 dontcycnic

也已经换淘宝源了啊,可是安装 forever 还是贼慢……

有什么解决思路吗

12394 次点击
所在节点    Node.js
12 条回复
Lxxyx
2019 年 11 月 17 日
试试看 cnpm: https://npm.taobao.org/
martyyyyy
2019 年 11 月 17 日
试试 yarn ?
weixiangzhe
2019 年 11 月 17 日
设置下淘宝镜像
DonaidTrump
2019 年 11 月 17 日
用 cnpm
dontcycnic
2019 年 11 月 17 日
@Lxxyx @weixiangzhe @tulongtou 设置了,打了下 verbose,是这样的

npm http request GET https://registry.npm.taobao.org/winston
npm info retry will retry, error on last attempt: Error: unexpected end of file
npm info retry will retry, error on last attempt: Error: unexpected end of file
npm info retry will retry, error on last attempt: Error: unexpected end of file
npm info attempt registry request try #2 at 3:09:02 PM
npm verb etag W/"e7db138b0fa322efea92b03edea3815d"
npm http request GET https://registry.npm.taobao.org/mkdirp
npm info retry will retry, error on last attempt: Error: unexpected end of file
npm info attempt registry request try #2 at 3:09:02 PM
npm verb etag W/"bdc238adde407214aa0f2663940bd60b"
npm http request GET https://registry.npm.taobao.org/nconf
npm info attempt registry request try #2 at 3:09:02 PM
npm verb etag W/"52ea63575501cb90187e7e97718ca8c8"
npm http request GET https://registry.npm.taobao.org/utile
npm info attempt registry request try #2 at 3:09:02 PM
npm verb etag W/"9d7fa4482b6418547d3b810830ab4287"
npm http request GET https://registry.npm.taobao.org/cliff
npm info attempt registry request try #2 at 3:09:02 PM
npm verb etag W/"78b2ce0cf9dd705f240258f0927b183d"
npm http request GET https://registry.npm.taobao.org/flatiron
npm info attempt registry request try #2 at 3:09:02 PM
npm verb etag W/"0cc03afe354fff725fb2adb3317cea96"
npm http request GET https://registry.npm.taobao.org/shush
npm info attempt registry request try #2 at 3:09:02 PM
npm verb etag W/"32788543675e1a7aa4137c6b12347fe0"
npm http request GET https://registry.npm.taobao.org/object-assign
npm info retry will retry, error on last attempt: Error: unexpected end of file
npm info retry will retry, error on last attempt: Error: unexpected end of file
npm info retry will retry, error on last attempt: Error: unexpected end of file
npm info retry will retry, error on last attempt: Error: unexpected end of file
npm info retry will retry, error on last attempt: Error: unexpected end of file
npm info retry will retry, error on last attempt: Error: unexpected end of file
npm info retry will retry, error on last attempt: Error: unexpected end of file
dontcycnic
2019 年 11 月 17 日
醉了,反而是把源换成官方源解决了……
cst4you
2019 年 11 月 17 日
那就换个海外机子
ps1aniuge
2019 年 11 月 17 日
进来后怎么黑天了?
opengps
2019 年 11 月 17 日
看下你的机器是不是 t5 机型,如果积分没了,就是会强制 20%基站运行的,这个时候有 2 种方案:
1,开启无性能约束模式,透支积分,甚至会产生一定费用
2,关机攒积分,1 核 2g 应该是最大 144 分,有了积分再继续安装
liuzhiyong
2019 年 11 月 17 日
“也已经换淘宝源了啊”——这个应该速度很快呀,晕倒。
Leo8888
2019 年 11 月 22 日
这个主题有问题吧
jimmy3780
2019 年 11 月 24 日
cnpm+国内镜像

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/620377

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX