简体   繁体   English

使用命令提示符启动离子时无法验证第一个证书

[英]Unable to verify the first certificate when ionic start using command prompt

I getting below error while create new project using cmd 使用cmd创建新项目时出现错误提示

D:\IONIC>ionic start myProject tutorial
× Downloading and extracting tutorial starter - failed!
Error: unable to verify the first certificate
    at TLSSocket.<anonymous> (_tls_wrap.js:1103:38)
    at emitNone (events.js:106:13)
    at TLSSocket.emit (events.js:208:7)
    at TLSSocket._finishInit (_tls_wrap.js:637:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:467:38)

Below the versions the I am using, 在我使用的版本下方,

D:\IONIC>ionic -v
3.19.1
D:\IONIC>npm -v
5.6.0
D:\IONIC>cordova -v
8.0.0

can anyone please help me for this error? 有人可以帮我解决这个错误吗?

I managed to get round this by doing a temporary set of an environment variable before running the ionic scaffolding. 在运行离子支架之前,我通过做一组临时的环境变量来解决这个问题。 set NODE_TLS_REJECT_UNAUTHORIZED=0 . 设置NODE_TLS_REJECT_UNAUTHORIZED = 0 Don't really like it a solution but managed to get me over the line. 不太喜欢这种解决方案,但设法让我克服了麻烦。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试启动Discord机器人时出现“错误:无法验证第一个证书” - 'Error: unable to verify the first certificate' when trying to start discord bot 无法验证第一个证书 - Unable to verify the first certificate SwagQL - 无法验证第一个证书 - SwagQL - Unable to verify the first certificate 使用自生成证书从nodejs连接到elasticsearch时“无法验证第一个证书” - "unable to verify the first certificate" when connecting to elasticsearch from nodejs using self-generated certificates 运行 npm install 时无法验证第一个证书 - unable to verify the first certificate when running npm install 使用 Let&#39;s Encrypt 证书通过 HTTPS 访问 CouchDB 时,节点无法验证第一个证书 - Node unable to verify the first certificate when accessing CouchDB through HTTPS with a Let's Encrypt certificate 无法验证Node.js中的第一个证书 - Unable to verify the first certificate in Node.js 无法验证第一个证书 - Nodejs TLS - Unable to verify the first certificate - Nodejs TLS 无法验证超级账本节点SDK中的第一个证书? - unable to verify the first certificate in hyperledger node sdk? 猫鼬安装-无法验证第一个证书 - Mongoose install - unable to verify the first certificate
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM