由於npm沒有設置國內鏡像服務器(由於大部份內容要去外網下載,直連比較慢)webpack
先執行npm config set registry http://registry.npm.taobao.orgweb
再執行安裝命令,如npm install webpack@3.6.0 -gnpm