Prevent yet another Node and Corepack madness

This commit is contained in:
tituspijean 2024-05-17 21:32:27 +02:00
parent 498b8d9c43
commit 3010066190
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -74,6 +74,8 @@ ynh_use_nodejs() {
ynh_node_load_PATH="PATH=$node_PATH"
# Same var but in lower case to be compatible with ynh_replace_vars...
ynh_node_load_path="PATH=$node_PATH"
# Prevent yet another Node and Corepack madness, with Corepack wanting the user to confirm download of Yarn
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
}
# Install a specific version of nodejs