安装nodejs
一路next安装即可
安装完成后 测试
安装nrm
npm install nrm -g
安装出现错误 如下类似错误 也可能由于网速太慢的原因造成的
# npm install时报错 npm ERR!Windows_NT 6.1.7601
...
解决方案:
执行了下面这个命令
npm --registry https://registry.npm.taobao.org info underscore
然后执行 npm install nrm -g
终于安装成功了 输入
C:\Windows\system32>nrm ls
* npm ---- https://registry.npmjs.org/
cnpm --- http://r.cnpmjs.org/
taobao - https://registry.npm.taobao.org/
nj ----- https://registry.nodejitsu.com/
rednpm - http://registry.mirror.cqupt.edu.cn/
npmMirror https://skimdb.npmjs.com/registry/
edunpm - http://registry.enpmjs.org/
C:\Windows\system32>nrm use taobao
Registry has been set to: https://registry.npm.taobao.org/
C:\Windows\system32>nrm ls
npm ---- https://registry.npmjs.org/
cnpm --- http://r.cnpmjs.org/
* taobao - https://registry.npm.taobao.org/
nj ----- https://registry.nodejitsu.com/
rednpm - http://registry.mirror.cqupt.edu.cn/
npmMirror https://skimdb.npmjs.com/registry/
edunpm - http://registry.enpmjs.org/
将源切到淘宝镜像上
安装webpack
C:\Windows\system32>npm install webpack@1.14.0 -g
支持安装完成了