Open tatilepizs opened 9 months ago
Hi @tatilepizs! I was able to load the config in my local cht without exporting the NODE_OPTIONS
variable. And without any errors.
Environment
I use the Dev environment setup
export COUCH_NODE_NAME=nonode@nohost
export COUCH_URL=http://medic:password@localhost:5984/medic
Couchdb setup
Run:
npm run build-dev-watch
npm run dev-api
npm run dev-sentinel
Cloned the config repository:
git clone https://github.com/medic/config-moh-mali-chw.git
Run npm ci
inside config-moh-mali-chw directory
Run cht --url=http://medic:password@localhost:5988/
After a while i finally got INFO All actions completed.
in the logs.
And my instance looks like this:
Let me know if you want to try this together.
Describe the bug I am seeing an error when I try to upload a specific config in my local environment.
This is the error when I try to execute
cht --local
If I export the
NODE_OPTIONS
to the following value, the issue is "fixed"export NODE_OPTIONS=--openssl-legacy-provider
Expected behavior The config should be uploaded without any problem. It is working fine for other people using linux for example.
Logs NA
Screenshots NA
Environment
v16.20.1
INFO 3.20.0
~4.5.0
macOS Sonoma version 14.1.1, intel