搭建node环境

搭建node环境

参考https://github.com/nvm-sh/nvm

1.安装nvm

#curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
或者
#wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash

2.验证nvm是否安装成功

#exit(退出终端,重新登录终端)

#command -v nvm

nvm

3.安装node

#nvm install 8.11.3 (指定node的版本号安装)

# node -v

v8.11.3

 

 

 

 

 

 

 

 

 

 



 
posted @ 2019-12-12 09:21  yang-leo  阅读(75)  评论(0)    收藏  举报