nodejs

ubuntu16.04安装

apt-get install npm
npm i -g n
n ls //查看版本
n 7.0.0 //下载指定版本
//如下载完之后查看node版本没有切换
//修改.bashrc或.bash_profile或/etc/profile 添加如下
export N_PREFIX=/usr/local #n的node安装目录
export PATH=$N_PREFIX/bin:$PATH

开黑吗我亚索贼6
原文地址:https://www.cnblogs.com/insight0912/p/7217131.html