# 安装nodejs
cd ~/
wget https://cdn.npm.taobao.org/dist/node/v14.15.4/node-v14.15.4-linux-x64.tar.xz
tar -xvf node-v14.15.4-linux-x64.tar.xz
ln -s ~/node-v14.15.4-linux-x64/bin/npm /usr/local/bin/npm
ln -s ~/node-v14.15.4-linux-x64/bin/node /usr/local/bin/node
node -v
npm -v
换源
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
npm config set disturl https://mirrors.huaweicloud.com/nodejs
npm config set python_mirror https://mirrors.huaweicloud.com/python
npm cache clean -f
← 安装docker Keepalived →