win10安装nodejs

https://jingyan.baidu.com/article/b0b63dbfca599a4a483070a5.html

1 去官网下载对应版本的msi文件

2安装,path会自动设置

3 检验,命令行输入node,然后console.log("helo");

4  设置下载源

http://blog.csdn.net/esonpo/article/details/37601169

要用到nrm

首先设置环境目录:
set path=d:\develop\nodejs;%path%

暂时不明白这步是干嘛的

然后安装nrm

npm install -g nrm --registry=http://registry.npm.taobao.org

nrm ls

* npm ---- https://registry.npmjs.org/
  cnpm --- http://r.cnpmjs.org/
  taobao - http://registry.npm.taobao.org/
  eu ----- http://registry.npmjs.eu/
  au ----- http://registry.npmjs.org.au/
  sl ----- http://npm.strongloop.com/
  nj ----- https://registry.nodejitsu.com/

然后nrm use taobao现在源已经变成淘宝了

 

posted @ 2018-01-02 14:53  xqnq2007  阅读(236)  评论(0编辑  收藏  举报