From a6b0fb433b6f72c4855c50bc149a7734f43d036b Mon Sep 17 00:00:00 2001 From: Neko Nekowazarashi Date: Mon, 29 May 2023 19:30:03 +0700 Subject: [PATCH] revert 3c5c408d45ee193ed46e5e1bb75f8cb02c0c0a60 revert perbaiki galat eacces --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index ebde14d..9b3032b 100755 --- a/scripts/install +++ b/scripts/install @@ -55,9 +55,11 @@ chown $app:$app "$install_dir/.env.local" #================================================= ynh_script_progression --message="Building the app..." --weight=1 +mkdir "$install_dir/.npm-global" +export NPM_CONFIG_PREFIX=~/.npm-global ynh_install_nodejs --nodejs_version=18.16.0 ynh_use_nodejs -ynh_exec_warn_less $ynh_node_load_PATH $ynh_npm install +ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install npx next telemetry disable ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH $ynh_npm build