由于npm没有设置国内镜像服务器(由于大部份内容要去外网下载,直连比较慢)webpack
先执行npm config set registry http://registry.npm.taobao.orgweb
再执行安装命令,如npm install webpack@3.6.0 -gnpm