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:
parent
51cecc762a
commit
d7cfd269ec
2 changed files with 17 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue