龙岗的网站建设,廊坊视频优化排名,龙华区民治街道城市更新,专业公司网站制作公司npm安装依赖时#xff0c;出现报错#xff1a; https://registry.npm.taobao.org/: certificate has expired#xff0c;这是因为之前设置过npm使用淘宝源#xff0c;而淘宝源证书过期了。
解决方法——替换新的淘宝源 https://registry.npmmirror.com/ 打开终端 #查看 np…npm安装依赖时出现报错 https://registry.npm.taobao.org/: certificate has expired这是因为之前设置过npm使用淘宝源而淘宝源证书过期了。
解决方法——替换新的淘宝源 https://registry.npmmirror.com/ 打开终端 #查看 npm 当前设置 $ npm config get registry #设置新的淘宝源npm镜像 $ npm config set registry https://registry.npmmirror.com #查看设置是否成功 $ npm config get registry 如果打印出来的是 https://registry.npmmirror.com则说明已经设置成功 同理如果你使用的是yarn只要换以下命令更新配置即可 $ yarn config get registry $ yarn config set registry https://registry.npmmirror.com $ yarn config get registry 再次执行之前的安装依赖命令就能成功拉取依赖包啦