vue-cli环境安装配置(ubuntu)
安装node.js
终端输入
-
添加源
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -其中14为版本号,到官网https://nodejs.org/zh-cn/查看当前最新稳定版本替换即可
-
安装
sudo apt-get install -y nodejs
安装npm
- 安装
sudo apt-get install npm
- 更新npm
sudo npm install npm@latest -g
安装vue-cli
sudo npm install -g @vue/cli

浙公网安备 33010602011771号