mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Add switch for npm installation
This commit is contained in:
parent
ca20609394
commit
fea24621ce
1 changed files with 5 additions and 1 deletions
|
@ -33,7 +33,11 @@ waitforservice() {
|
|||
|
||||
installnode(){
|
||||
|
||||
if [ $DEBIAN_ISSUE == "stretch"]; then
|
||||
sudo apt-get install -y nodejs
|
||||
else
|
||||
sudo apt-get install -y npm
|
||||
fi
|
||||
# Meteor needs at least this version of node to work.
|
||||
sudo npm install -g n
|
||||
sudo n $NODE_VERSION
|
||||
|
|
Loading…
Reference in a new issue