vue-cli环境安装配置(ubuntu)

安装node.js
终端输入

  1. 添加源

    curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

    其中14为版本号,到官网https://nodejs.org/zh-cn/查看当前最新稳定版本替换即可

  2. 安装

sudo apt-get install -y nodejs

安装npm

  1. 安装

sudo apt-get install npm

  1. 更新npm

sudo npm install npm@latest -g

安装vue-cli

sudo npm install -g @vue/cli

posted @ 2021-02-03 14:47  年轻浅识  阅读(270)  评论(0)    收藏  举报