安装nodejs
sudo apt install nodejs
安装npm
sudo apt install npm
升级nodejs
sudo npm install n -g
sudo n stable
安装yarn
npm install -g yarn
sudo yarn config set ignore-engines true
安装vue-cli
sudo yarn global add @vue/cli
vue -V
初始化 vue-cli
sudo npm i -g @vue/cli-init
新建项目
vue init webpack my-project