npm install报错certificate has expired

报错: reason: certificate has expired

npm install报错certificate has expired_第1张图片

解决:更换npm镜像源

登录到服务器上,更换npm镜像源(或者在jenkins上配置)

npm config set registry http://registry.cnpmjs.org
npm config set registry http://registry.npm.taobao.org
#如果上面两个命令不生效,可以执行下面的清除缓存的命令再试一下
npm cache clean --force

npm install报错certificate has expired_第2张图片

你可能感兴趣的:(npm,前端,node.js)