1.指定源
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
2.安装 node
sudo apt-get install -y nodejs
3.安装 nrm
npm install -g nrm
4.切换taobao
nrm ls
nrm use taobao
5.构建项目
npm i --legacy-peer-deps
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install -g nrm
nrm ls
nrm use taobao
npm i --legacy-peer-deps