npm error code CERT_HAS_EXPIRED
npm error errno CERT_HAS_EXPIRED
npm error request to https://r2.cnpmjs.org/yallist/-/yallist-3.1.1.tgz failed, reason: certificate has expired
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-02-21T02_38_02_130Z-debug-0.log
解决方案直接执行下面的代码更新证书
apt install ca-certificates