Node.js 使用命令提示符启动时无法验证第一个证书
我在使用cmd创建新项目时遇到以下错误Node.js 使用命令提示符启动时无法验证第一个证书,node.js,ionic-framework,Node.js,Ionic Framework,我在使用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:
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)
有人能帮我解决这个错误吗?在运行ionic脚手架之前,我通过临时设置一组环境变量来解决这个问题。将NODE\u TLS\u REJECT\u UNAUTHORIZED设置为0。我真的不喜欢这是一个解决方案,但还是设法让我克服了困难
D:\IONIC>ionic -v
3.19.1
D:\IONIC>npm -v
5.6.0
D:\IONIC>cordova -v
8.0.0