From d7cfd269ec619daaf444ea7f6675f973b75f4957 Mon Sep 17 00:00:00 2001 From: Yalh Date: Mon, 28 Jan 2019 21:17:29 +0100 Subject: [PATCH] add npm install --- scripts/install | 12 ++++++++++-- scripts/remove | 9 +++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 8ed920a..77e35c2 100644 --- a/scripts/install +++ b/scripts/install @@ -169,9 +169,17 @@ ynh_system_user_create $app #================================================= ynh_install_nodejs 11 + +pushd $final_path ynh_use_nodejs -npm install -g typescript -npm install -g ts-node +npm install +popd + +#npm audit fix +#npm install -g npm-install-peers +#npm-install-peers +#npm install -g typescript +#npm install -g ts-node #================================================= # SETUP SYSTEMD diff --git a/scripts/remove b/scripts/remove index 72c9e29..1ed06d5 100644 --- a/scripts/remove +++ b/scripts/remove @@ -99,11 +99,16 @@ fi # REMOVE THE CRON FILE #================================================= +pushd $final_path ynh_use_nodejs -npm uninstall -g ts-node -npm uninstall -g typescript +npm uninstall +popd ynh_remove_nodejs + +#npm uninstall -g ts-node +#npm uninstall -g typescript + # Remove a cron file #ynh_secure_remove "/etc/cron.d/$app"