1、使用sudo apt-get install npm来安装node
发现node的版本只有v10.12.0
2、安装n依赖
sudo npm i -g n
3、使用n来安装最新的node
sudo n latest
对了,别忘记使用淘宝镜像哦
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
附上阿里云npm镜像链接:
阿里云npm淘宝镜像
1、使用sudo apt-get install npm来安装node
发现node的版本只有v10.12.0
2、安装n依赖
sudo npm i -g n
3、使用n来安装最新的node
sudo n latest
对了,别忘记使用淘宝镜像哦
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
附上阿里云npm镜像链接:
阿里云npm淘宝镜像