在用npm报错一直得不到解决,于是使用yarn install 安装依赖,却还是出现了如下报错
error An unexpected error occurred: "https://registry.npmmirror.com/webpack/-/webpack-4.46.0.tgz: self signed certificate in certificate chain".
不管是如上错误还是如下错误
error An unexpected error occurred: "https://registry.npm.taobao.org/axios: unable to verify the first certificate".
如下方法,解决一切花里胡哨
yarn config set "strict-ssl" false -g