执行下面命令下载不下来
wget https://nodejs.org/download/release/v16.14.2/node-v16.14.2-headers.tar.gz
wget https://nodejs.org/download/release/v16.13.1/node-v16.13.1-headers.tar.gz
1、先在 /opt
目录执行:
wget https://repo.huaweicloud.com/nodejs/v16.14.2/node-v16.14.2-headers.tar.gz
wget https://repo.huaweicloud.com/nodejs/v16.13.1/node-v16.13.1-headers.tar.gz
2、再执行:
npm config set tarball /opt/node-v16.14.2-headers.tar.gz
npm config set tarball /opt/node-v16.13.1-headers.tar.gz
再执行 yarn
即可