安装npm包的时候出现unable to get local issuer certificate的错误解决办法
来源:互联网 发布:vc 6.0 安装包 知乎 编辑:程序博客网 时间:2024/05/15 23:50
我本地的npm是通过node.js安装包安装之后来的,在安装有些npm包的时候很正常,但是当我安装superagent时出错了,具体的错误信息如下:
npm ERR! Windows_NT 6.1.7601npm ERR! argv "H:\\e\\Program Files\\nodeJs\\node.exe" "H:\\e\\Program Files\\nodeJs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save-dev" "superagent"npm ERR! node v6.9.1npm ERR! npm v3.10.8npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLYnpm ERR! unable to get local issuer certificatenpm ERR!npm ERR! If you need help, you may report this error at:npm ERR! <https://github.com/npm/npm/issues>npm ERR! Please include the following file with any support request:npm ERR! H:\g\webTest\nodeTest\npm-debug.log
在多次排查之后,依然毫无头绪。通过在npm项目issue中发现有同样问题,发现执行下面语句即可:
npm config set strict-ssl false
或者在主目录下的.npmrc文件中修改strict-ssl等于false
参考:
- https://github.com/npm/npm/issues/14667
- https://docs.npmjs.com/misc/config
0 0
- 安装npm包的时候出现unable to get local issuer certificate的错误解决办法
- PHP出现 cURL error 60: SSL certificate: unable to get local issuer certificate.的解决办法。
- PHP出现SSL certificate: unable to get local issuer certificate的解决办法
- PHP通过cURL访问https时出现SSL certificate problem: unable to get local issuer certificate的解决方法
- PHP通过cURL访问https时出现SSL certificate problem: unable to get local issuer certificate的解决方法
- unable to get local issuer certificate code60
- git SSL certificate problem: unable to get local issuer certificate
- SSL certificate problem: unable to get local issuer certificate
- SSL certificate problem: unable to get local issuer certificate
- SSL certificate problem: unable to get local issuer certificate 解决方法
- Git: SSL certificate problem: unable to get local issuer certificate
- SSL certificate problem: unable to get local issuer certificate
- SSL certificate problem: unable to get local issuer certificate
- HTTP 599: SSL certificate problem: unable to get local issuer certificate错误
- 错误pycurl.error: (60, 'SSL certificate problem: unable to get local issuer certificate')解决方案
- curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- 微信公众号curl: (60) SSL certificate problem: unable to get local issuer certificate 错误
- pycurl https error: unable to get local issuer certificate
- python获取加拿大国家日平均汇率比数据的脚本DataMake.py
- Intellij IDEA的Hibernate简单应用
- C#:SQLite项目搭建
- linux命令
- 【OpenCV入门教程之十二】OpenCV边缘检测:Canny算子,Sobel算子,Laplace算子,Scharr滤波器合辑合辑
- 安装npm包的时候出现unable to get local issuer certificate的错误解决办法
- 1002. 写出这个数 (20) PAT
- String 与inputString 互转方法
- Chapter12——请比较函数重载和虚函数在概念上和使用方式有什么区别
- 不使用XML来创建SqlSessionFactory
- 续安装好composer和workerman之后;TP5运行workerman的操作
- 最近做了一道恶心的题目
- Windows I/O操作
- 补c++第四次作业