linux 安装nvm ,管理多版本nodejs

寻技术 Linux / JS脚本 2023年07月12日 66

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash

 

 

立即生效

source ~/.bashrc

 

安装v6.10.3

nvm install v6.10.3

npm install forever -g

forever start index.js

关闭

用微信“扫一扫”