windows10下使用ubuntu,并搭建nodejs环境

1、首先要在win10的设置里打开开发人员使用模式

2、在bash下,下载ubuntu系统

3、安装git,因为要把下载nvm的话,需要git

sudo apt-get install git

4、安装nvm

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

5、重启bash,查看能安装的nodejs版本,安装最新的nodejs

nvm install <version>

猜你喜欢

转载自www.cnblogs.com/windseek/p/9238741.html