是否最近遇到如下情况:

npm i 报错:request to https://registry.npm.taobao.org/@sxzz%2fpopperjs-es failed, reason: certificate has expired

参考:https://blog.csdn.net/ganyingxie123456/article/details/135850728

可以尝试如下:

cd /opt
wget https://nodejs.org/dist/v14.21.3/node-v14.21.3-linux-x64.tar.gz
tar xvf node-v14.21.3-linux-x64.tar.gz
ln -s /opt/node-v14.21.3-linux-x64/bin/node /bin/node
ln -s /opt/node-v14.21.3-linux-x64/bin/npm /bin/npm
node -v
npm -v

# 配置国内更新源
npm config set registry https://registry.npmmirror.com
npm config set strict-ssl false 
最后修改:2024 年 07 月 26 日
如果觉得我的文章对你有用,请随意赞赏