取消ssl验证: npm config set strict-ssl false 解决啦! 参考文章: 解决执行npm(或pnpm)时报:证书过期 certificate has expired问题_npm_慢慢雨夜-GitCode 开源社区