双十一买的阿里云 npm install 很慢怎么办…… - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dontcycnic
V2EX    Node.js

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

  •  
  •   dontcycnic 2019-11-17 14:41:10 +08:00 12288 次点击
    这是一个创建于 2242 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    有什么解决思路吗

    第 1 条附言    2019-11-17 23:18:00 +08:00
    解决了 好像是淘宝源的问题,换默认源之后就能顺利安装了
    12 条回复    2019-11-24 18:43:55 +08:00
    Lxxyx
        1
    Lxxyx  
       2019-11-17 14:52:57 +08:00
    试试看 cnpm: https://npm.taobao.org/
    martyyyyy
        2
    martyyyyy  
       2019-11-17 14:56:32 +08:00
    试试 yarn ?
    weixiangzhe
        3
    weixiangzhe  
       2019-11-17 15:01:01 +08:00 via Android
    设置下淘宝镜像
    DonaidTrump
        4
    DonaidTrump  
       2019-11-17 15:08:16 +08:00
    用 cnpm
    dontcycnic
        5
    dontcycnic  
    OP
      &nbs;2019-11-17 15:10:17 +08:00
    @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
        6
    dontcycnic  
    OP
       2019-11-17 15:23:22 +08:00
    醉了,反而是把源换成官方源解决了……
    cst4you
        7
    cst4you  
       2019-11-17 16:08:18 +08:00
    那就换个海外机子
    ps1aniuge
        8
    ps1aniuge  
       2019-11-17 19:02:39 +08:00
    进来后怎么黑天了?
    opengps
        9
    opengps  
       2019-11-17 19:08:28 +08:00 via Android
    看下你的机器是不是 t5 机型,如果积分没了,就是会强制 20%基站运行的,这个时候有 2 种方案:
    1,开启无性能约束模式,透支积分,甚至会产生一定费用
    2,关机攒积分,1 核 2g 应该是最大 144 分,有了积分再继续安装
    liuzhiyong
        10
    liuzhiyong  
       2019-11-17 20:45:50 +08:00
    “也已经换淘宝源了啊”这个应该速度很快呀,晕倒。
    Leo8888
        11
    Leo8888  
       2019-11-22 14:34:36 +08:00
    这个主题有问题吧
    jimmy3780
        12
    jimmy3780  
       2019-11-24 18:43:55 +08:00 via iPhone
    cnpm+国内镜像
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     3407 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 24ms UTC 00:42 PVG 08:42 LAX 16:42 JFK 19:42
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86