From 1ce61ab42443d0e3f23eb4c069326f9f4385c10b Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 17 May 2024 21:24:48 +0200 Subject: [PATCH] Prevent Corepack prompt --- scripts/install | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 227d174..ee91533 100755 --- a/scripts/install +++ b/scripts/install @@ -21,14 +21,16 @@ yunohost app list | grep -q "id: zerotier" || ynh_die "ZeroTier is needed, but i #================================================= ynh_script_progression --message="Installing dependencies..." --weight=2 +# Prevent ERR_OSSL_EVP_UNSUPPORTED error +export NODE_OPTIONS=--openssl-legacy-provider +# Prevent yet another Node and Corepack madness +export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 + ynh_install_nodejs --nodejs_version=$nodejs_version ynh_use_nodejs $nodejs_path/corepack enable $nodejs_path/corepack prepare yarn@stable --activate -# Prevent ERR_OSSL_EVP_UNSUPPORTED error -export NODE_OPTIONS=--openssl-legacy-provider - #================================================= # APP "BUILD" (DEPLOYING SOURCES, VENV, COMPILING ETC) #=================================================