直接設(shè)置npm的registry到國(guó)內(nèi)淘寶的鏡像地址:npm --registry=https://registry.npm.taobao.org 或者 npm config set registry https://registry.npm.taobao.org,可以解決速度問(wèn)題。
2016-12-05
已采納回答 / garyn
國(guó)為npm的中央庫(kù)在國(guó)外,一般使用npm install的都會(huì)比較慢或者直接安裝不了,解決辦法是使用淘寶的npm鏡像:https://npm.taobao.org/
2016-12-03