ubuntu 安装nodejs cnpm yarn vue-cli
一:安装nodejs
下载 | Node.js 中文网
ubuntu仓库里边的nodejs 比较旧
cd ~
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
sudo apt update
sudo apt install nodejs
要安装 nodejs 最新版本,可以运行如下命令:
cd ~
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo a
原创
2022-04-29 13:49:12 ·
1527 阅读 ·
0 评论