mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
[fix] support stretch for npm/gulp
This commit is contained in:
parent
f751ea305d
commit
64bff8280a
1 changed files with 13 additions and 2 deletions
15
ynh-dev
15
ynh-dev
|
@ -283,8 +283,19 @@ elif [ "$1" = "use-git" ]; then
|
||||||
which gulp > /dev/null
|
which gulp > /dev/null
|
||||||
if [ $? -eq 1 ]
|
if [ $? -eq 1 ]
|
||||||
then
|
then
|
||||||
sudo apt-get update --fix-missing
|
release=$(lsb_release -c | cut -d ":" -f 2 | sed 's/\s*//')
|
||||||
sudo apt-get -y install nodejs-legacy npm
|
|
||||||
|
if [ $release == "stretch" ]
|
||||||
|
then
|
||||||
|
# for watever reason npm is not in stretch anymore
|
||||||
|
# because why the fuck debian
|
||||||
|
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
|
||||||
|
sudo apt install nodejs
|
||||||
|
else
|
||||||
|
sudo apt-get update --fix-missing
|
||||||
|
sudo apt-get -y install nodejs-legacy npm
|
||||||
|
fi
|
||||||
|
|
||||||
cd /vagrant/yunohost-admin/src
|
cd /vagrant/yunohost-admin/src
|
||||||
sudo npm install
|
sudo npm install
|
||||||
sudo npm install -g bower
|
sudo npm install -g bower
|
||||||
|
|
Loading…
Add table
Reference in a new issue