分享你我的心得.
共乘一片美好网络.

npm ERR! request to https://registry.npm.taobao.org failed, reason: certificate has expired

解决方法

  • 使用正确的镜像源

npm config set registry https://registry.npmmirror.com

然后执行以下代码

清除一下缓存,并删除掉node_module

npm cache clean –force
切换cnpm安装

npm config set registry https://registry.npmmirror.com
安装electron

cnpm i electron –save-d

出现

安装成功!

赞(0)
未经允许不得转载:小叶白龙博客 » npm ERR! request to https://registry.npm.taobao.org failed, reason: certificate has expired
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址