在使用npm 创建项目的时候,报错:Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)

百度翻译结果:通过禁用证书验证,将NODE_TLS_REJECT_UNAUTHORIZED环境变量设置为“0”会使TLS连接和HTTPS请求不安全。

于是我去环境变量里面查看,果然配置了NODE_TLS_REJECT_UNAUTHORIZED,于是将其删除,就可以了

 

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐