摘要(Summary)
win & linux 安装nodeJS, 使用nvm管理不同版本nodeJS, 国内npm加速
win&linux install nodejs, use NVM manage diff version nodejs, speed up download in chinese
nvm简介( nvm intro)
nvm可以管理不同版本nodejs,不影响系统。win系统使用nvwm替代nvm
NVM can manage different version of nodejs, make your OS clean. BTW, windows use nvwm instead
shell代码如下(linux或OSX)
|
|
win系统 (If use windows)
|
|
国内npm加速(speed up your npm in chinese)
npm是nodejs的包管理工具,类似apt-get。但是默认是从国外下载包,所以使用的时候可以选择国内镜像加速。
(npm is a package management tool of nodejs, like apt-get in debain. But by default it download from ocean website, so you can choose to speed your npm up)
简单可以每次运行npm install的时候加registry参数。(simplely add registry arg when you run npm install )
但是每次都要输registry很麻烦。可以加入环境变量ENV(linux)/PATH(win)里面(If you don’t want to type resigisty everytime, you can add it in ENV/PATH )
|
|