Skip to content

Commit 08e7266

Browse files
committed
Install npm
1 parent eb970da commit 08e7266

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

install_deps.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
for i in {1..20}; do
4+
apt-get update && apt-get install -y curl gpg-agent && break
5+
echo "apt-get failed, retrying... ($i/20)"
6+
sleep 30
7+
done
8+
9+
curl --silent --location https://deb.nodesource.com/setup_14.x | bash -
10+
11+
for i in {1..20}; do
12+
apt-get install -y nodejs npm unzip p7zip-full && npm install -g nodemon && break
13+
echo "apt-get failed, retrying... ($i/20)"
14+
sleep 30
15+
done

0 commit comments

Comments
 (0)