1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zeroui_ynh.git synced 2024-09-03 18:05:57 +02:00

Prevent Corepack prompt

This commit is contained in:
tituspijean 2024-05-17 21:24:48 +02:00 committed by GitHub
parent ad28d66e57
commit 1ce61ab424
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
#=================================================