因现有项目需要用一个截屏node包,此包必须新版本,所以紧急升级下测试环境nodejs,后续再升级线上,小小试了下node在线升级 方案1,使用npm安装n模块,使用n来升级nodejs 首先要知道nodejs是安装在那个用户底下的,然后切换到相应用户,当然也可以sudo 安装n模块: npm install -g n 升级node.js到最新稳定版 n stable 升级node.js到最新版 n latest 升级node.js到制定版本 n v7.10.0 安装一半的时候也许会因为网络问题…
准备工作: 下载nodejs (exe format)(http://nodejs.org/) 下载npm(zip format)(http://nodejs.org/dist/npm/) 开始安装 Make a clean directory (for example "D:\Program Files\nodejs") and add that directory to your system's PATH variable Put the downloaded node.exe…