1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00

add npm install

This commit is contained in:
Yalh 2019-01-28 21:17:29 +01:00
parent 51cecc762a
commit d7cfd269ec
2 changed files with 17 additions and 4 deletions

View file

@ -169,9 +169,17 @@ ynh_system_user_create $app
#================================================= #=================================================
ynh_install_nodejs 11 ynh_install_nodejs 11
pushd $final_path
ynh_use_nodejs ynh_use_nodejs
npm install -g typescript npm install
npm install -g ts-node popd
#npm audit fix
#npm install -g npm-install-peers
#npm-install-peers
#npm install -g typescript
#npm install -g ts-node
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD

View file

@ -99,11 +99,16 @@ fi
# REMOVE THE CRON FILE # REMOVE THE CRON FILE
#================================================= #=================================================
pushd $final_path
ynh_use_nodejs ynh_use_nodejs
npm uninstall -g ts-node npm uninstall
npm uninstall -g typescript popd
ynh_remove_nodejs ynh_remove_nodejs
#npm uninstall -g ts-node
#npm uninstall -g typescript
# Remove a cron file # Remove a cron file
#ynh_secure_remove "/etc/cron.d/$app" #ynh_secure_remove "/etc/cron.d/$app"