Ava is unable to run when NODE_OPTIONS=--use-openssl-ca
is used globally.
#3148
-
My company is having some network proxy/firewall with an OpenSSL certificate. In order to tell node to use it, for example for downloading packages, I'm having a export NODE_OPTIONS=--use-openssl-ca in my global shell config files, which works fine. But when I try to run Ava, I now get the following error:
Removing the option from Given the error message and a tiny bit of digging, I believe this is similar to parcel-bundler/parcel#6569 My current workaround is to have two terminals open, one with the option set to install packages or any other task requiring network access in node, and another one with the option unset to run Ava 🙈 Please share relevant sample code. Or better yet, provide a link to a minimal reproducible example. This happens in This public repo when running We'll also need your AVA configuration (in Ava version 5.1.0 (was also here with 4.3.1),
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can set |
Beta Was this translation helpful? Give feedback.
You can set
"workerThreads": "false"
in the AVA config, this should work with child processes. Perhaps setting"environmentVariables": { "NODE_OPTIONS": "" }
could also work, to override them for the worker threads.