NPM國內下載慢以及報錯的解決方案

一、切換源 1、安裝淘寶鏡像cnpm(如果之前安裝過跳過) npm install -g cnpm --registry=https://registry.npm.taobao.org 2、安裝nrm,切換源地址(下載依賴包的地址) npm install -g nrm 3、nrm添加源: nrm add npm http://registry.npmjs.org nrm add taobao h
相關文章
相關標籤/搜索