cd /opt
wget https://nodejs.org/dist/v12.18.1/node-v12.18.1-linux-x64.tar.xz
tar xf node-v12.18.1-linux-x64.tar.xz
cd node-v12.18.1-linux-x64
cp /etc/profile /etc/profile.bak
echo 'export PATH=$PATH:/opt/node-v12.18.1-linux-x64/bin' >> /etc/profile
source /etc/profile
node -v
npm install -g yarn --registry=https://registry.npm.taobao.org
yarn config set registry https://registry.npm.taobao.org -g
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
yarn global add @quasar/cli
jenkins设置
构建quasar程序的时候采用shell命令构建
yarn
quasar build