NVM
目前前端开发环境主要为Node,有时不同项目可能使用的node版本不同。这种情况需要维护多个版本的Node是一件相当麻烦的事情。NVM就是为解决这个问题而产生的。可以方便的再同一台电脑上进行多个版本的Node切换。详情参见:NVM官方网站。
如果安装过node建议卸载后再进行NVM安装。安装包下载地址:NVM。选择 nvm-setup.zip 进行下载。下载完成后进行解压安装。
一、安装



选择完成后install进行安装,安装完成后需要进行一些环境变量的配置。
二、配置环境变量
右击我的电脑——属性——高级系统设置




我进行环境变量配置时没有一次性成功所以有写值进行了重复添加。配置完成后就可以使用NVM了。
三、使用






到此NVM告成。
NRM
使用npm 包管理器时,使用官方源进行安装各种包比较慢。建议切换源地址,我大部分时间时taobao源。当然还存在其他的源地址。最近发现了一个npm源管理器NRM,用起来感觉挺方便的。nrm内置了一些源路径可直接使用。
一、安装

二、使用




到此nrm告成。
下边的百度网盘链接中存在NVM的安装包。以后还会时不时的增加其他与node相关的安装程序
百度网盘 提取码:qluo
第一次写存在不足之处或错误请指出。
网友评论