[英]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.