Blog Entry

试一下Neutralinojs

试一下Neutralinojs

Created
2022/04/01
Updated
2022/04/01

环境

  • Win10
  • Nodejs v17.1.0
  • Python 2.7.10

准备

Terminal window
# 安装nue
npm install -g @neutralinojs/neu
# 新建项目myapp
neu create myapp
# 启动
cd myapp
neu run

再见

卡在neu create myapp这一步了.

╰─ neu create myapp
neu: INFO Downloading neutralinojs/neutralinojs-minimal template to myapp directory...
node:events:368
throw er; // Unhandled 'error' event
^
Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
at TLSSocket.emit (node:events:390:28)
at TLSSocket._finishInit (node:_tls_wrap:944:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12)
Emitted 'error' event on Writable instance at:
at ClientRequest.eventHandlers.<computed> (D:\Scoop\persist\nodejs\bin\node_modules\@neutralinojs\neu\node_modules\follow-redirects\index.js:14:24)
at ClientRequest.emit (node:events:390:28)
at TLSSocket.socketErrorListener (node:_http_client:447:9)
at TLSSocket.emit (node:events:390:28)
at emitErrorNT (node:internal/streams/destroy:164:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
}

已做如下尝试:

  1. 配置淘宝镜像
npm config set registry http://registry.npm.taobao.org/ --global
  1. 配置 NPM 不做严格的 SSL 校验
npm config set strict-ssl false
  1. 配置环境变量
NODE_TLS_REJECT_UNAUTHORIZED:0
  1. 配置 YARN 不做严格的 SSL 校验
yarn config set "strict-ssl" false
  1. 配置 Git 不做 SSL 校验
git config --global http.sslVerify false
  1. 配置 Git 使用 http 代替 https。
git config --global url.https://github.com/.insteadOf git://github.com/

均没有效果.只能说缘分未到.

参考