标签:install str port div /etc/ code version $path ble
安装nodejs
yum install -y nodejs
安装n工具
npm install n -g
升级node到最新的版本
n statble
更改环境变量
vim /etc/profile
在尾部添加环境变量
# set node path export NODE_HOME=/usr/local/n/versions/node/[版本号] export PATH=$NODE_HOME/bin:$PATH
刷新环境变量
source /etc/profile
标签:install str port div /etc/ code version $path ble
原文地址:https://www.cnblogs.com/lixingbaophp/p/9055239.html