报错信息:
npm ERR! code CERT_HAS_EXPIRED
npm ERR! errno CERT_HAS_EXPIRED
npm ERR! request to https://registry.npm.taobao.org/html-docx-js failed, reason: certificate has expired
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2024-01-25T02_10_29_357Z-debug.log
因为淘宝源的ssl证书不能被npm接受导致的,解决方法:
npm config set strict-ssl false
或者把npm源重新设置为:
npm config set registry http://registry.npmjs.org/
评论 暂无