1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kresus_ynh.git synced 2024-09-03 19:36:10 +02:00

Use npm in nodejs path instead of global npm

This commit is contained in:
nicofrand 2020-05-09 13:04:36 +02:00 committed by Nicolas Frandeboeuf
parent bd8712156e
commit 3c8d64f307
3 changed files with 6 additions and 3 deletions

View file

@ -21,7 +21,7 @@
"requirements": {
"yunohost": ">= 3.6.0"
},
"version": "0.16.0~ynh3",
"version": "0.16.0~ynh4",
"multi_instance": true,
"services": [
"nginx"

View file

@ -140,7 +140,9 @@ ynh_use_nodejs
(
cd "$final_path"
chown -R "$app": "$final_path"
npm install --production --unsafe-perm
# ynh_npm only exists for YunoHost 3.8+
"$nodejs_path/npm" install --production --unsafe-perm
)
#=================================================

View file

@ -156,7 +156,8 @@ ynh_use_nodejs
# linked to modules compiled for the previous version.
ynh_secure_remove --file="$final_path/node_modules"
npm install --production --unsafe-perm
# ynh_npm only exists for YunoHost 3.8+
"$nodejs_path/npm" install --production --unsafe-perm
)
#=================================================