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:
parent
bd8712156e
commit
3c8d64f307
3 changed files with 6 additions and 3 deletions
|
@ -21,7 +21,7 @@
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 3.6.0"
|
"yunohost": ">= 3.6.0"
|
||||||
},
|
},
|
||||||
"version": "0.16.0~ynh3",
|
"version": "0.16.0~ynh4",
|
||||||
"multi_instance": true,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
"nginx"
|
"nginx"
|
||||||
|
|
|
@ -140,7 +140,9 @@ ynh_use_nodejs
|
||||||
(
|
(
|
||||||
cd "$final_path"
|
cd "$final_path"
|
||||||
chown -R "$app": "$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
|
||||||
)
|
)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -156,7 +156,8 @@ ynh_use_nodejs
|
||||||
# linked to modules compiled for the previous version.
|
# linked to modules compiled for the previous version.
|
||||||
ynh_secure_remove --file="$final_path/node_modules"
|
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
|
||||||
)
|
)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue