Skip to content

Commit 275d391

Browse files
committed
working install with node
1 parent 2b5dee5 commit 275d391

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Diff for: scripts/install.sh

+5-6
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ echo "**** Downloading the latest version of the WebIDE ****"
6161
curl -L https://github.com/adafruit/Adafruit-WebIDE/archive/0.4.tar.gz | tar xzf - --strip-components=1
6262

6363
echo "**** Installing required libraries ****"
64-
echo "**** (redis-server git restartd libcap2-bin avahi-daemon i2c-tools python-smbus) ****"
64+
echo "**** (nodejs-legacy npm git libcap2-bin i2c-tools python-smbus ntp libkrb5-dev) ****"
6565
apt-get update
6666
apt-get install nodejs-legacy npm git libcap2-bin i2c-tools python-smbus ntp libkrb5-dev -y
6767

@@ -83,15 +83,14 @@ if [ "$?" -eq "0" ]; then
8383
fi
8484
rm /etc/sudoers.tmp
8585

86-
echo "**** Installing webide dependencies ****"
87-
npm install -g npm
88-
npm config set tmp "$WEBIDE_HOME/tmp"
89-
npm install
90-
9186
chown -R webide:webide "$WEBIDE_HOME"
9287
chown -R webide:webide "$WEBIDE_ROOT"
9388
chmod 775 "$WEBIDE_ROOT"
9489

90+
echo "**** Installing webide dependencies ****"
91+
sudo -u webide npm config set tmp "$WEBIDE_HOME/tmp"
92+
sudo -u webide npm install
93+
9594
echo "**** Adding default .bashrc file for webide user ****"
9695
cp "$WEBIDE_ROOT/scripts/.bashrc" "$WEBIDE_HOME"
9796

0 commit comments

Comments
 (0)