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:
parent
ad28d66e57
commit
1ce61ab424
1 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue