diff --git a/scripts/upgrade b/scripts/upgrade index 3673e1d..b628d46 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -115,13 +115,13 @@ ynh_system_user_create $app pushd $final_path ynh_use_nodejs -npm install "graphql@^0.13.1" -npm install "acorn@^6.0.0" -npm install "babel-core@>=6.0.20" -npm install "eslint@>=5.0.0" -npm install -npm audit fix -npm run build +sudo -u $app env PATH=$PATH:$nodejs_path npm install "graphql@^0.13.1" +sudo -u $app env PATH=$PATH:$nodejs_path npm install "acorn@^6.0.0" +sudo -u $app env PATH=$PATH:$nodejs_path npm install "babel-core@>=6.0.20" +sudo -u $app env PATH=$PATH:$nodejs_path npm install "eslint@>=5.0.0" +sudo -u $app env PATH=$PATH:$nodejs_path npm install +sudo -u $app env PATH=$PATH:$nodejs_path npm audit fix +sudo -u $app env PATH=$PATH:$nodejs_path npm run build popd ### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.