beeeta
V2EX  ›  Node.js

npm install 获取 fetchMetadata 的阶段非常慢,有什么方法可以加速呢?

  •  
  •   beeeta · Aug 14, 2017 · 6189 views
    This topic created in 3367 days ago, the information mentioned may be changed or developed.
    9 replies  •  2017-09-18 09:00:16 +08:00
    SourceMan
    SourceMan
    Aug 14, 2017
    1
    yarn
    zhengxiaowai
    zhengxiaowai
    Aug 14, 2017
    2
    npm install cnpm -g

    cnpm install
    ClassicOldSong
    ClassicOldSong
    Aug 14, 2017 via Android
    3
    npm install nrm -g
    nrm use taobao
    flyingfz
    flyingfz
    Aug 14, 2017
    4
    我优化一下。
    ----------
    npm config set registry=https://registry.npm.taobao.org

    npm install -g nrm

    nrm use taobao
    ------------
    再推荐一个模块 ,Sinopia, 但不知你有没有需求 .
    chinvo
    chinvo
    Aug 14, 2017
    5
    不要用 cnpm

    直接使用

    ====

    npm config set registry https://registry.npm.taobao.org --global

    npm config set disturl https://npm.taobao.org/dist --global

    yarn config set registry https://registry.npm.taobao.org --global

    yarn config set disturl https://npm.taobao.org/dist --global

    ====
    maplerecall
    maplerecall
    Aug 14, 2017
    6
    感觉 yarn 比 npm 快一些,不过还是得设置国内镜像
    hjdtl
    hjdtl
    Aug 14, 2017
    7
    cnpm 有些包有问题呀?
    Debiancc
    Debiancc
    Aug 16, 2017
    8
    cnpm 同步有些问题
    其实 npm 支持 proxy 的
    http socket5 贴上去
    gali3052
    gali3052
    Sep 18, 2017
    9
    proxychain npm install
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1707 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 23:42 · PVG 07:42 · LAX 15:42 · JFK 18:42
    ♥ Do have faith in what you're doing.