File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ echo "**** Downloading the latest version of the WebIDE ****"
61
61
curl -L https://github.com/adafruit/Adafruit-WebIDE/archive/0.4.tar.gz | tar xzf - --strip-components=1
62
62
63
63
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 ) ****"
65
65
apt-get update
66
66
apt-get install nodejs-legacy npm git libcap2-bin i2c-tools python-smbus ntp libkrb5-dev -y
67
67
@@ -83,15 +83,14 @@ if [ "$?" -eq "0" ]; then
83
83
fi
84
84
rm /etc/sudoers.tmp
85
85
86
- echo " **** Installing webide dependencies ****"
87
- npm install -g npm
88
- npm config set tmp " $WEBIDE_HOME /tmp"
89
- npm install
90
-
91
86
chown -R webide:webide " $WEBIDE_HOME "
92
87
chown -R webide:webide " $WEBIDE_ROOT "
93
88
chmod 775 " $WEBIDE_ROOT "
94
89
90
+ echo " **** Installing webide dependencies ****"
91
+ sudo -u webide npm config set tmp " $WEBIDE_HOME /tmp"
92
+ sudo -u webide npm install
93
+
95
94
echo " **** Adding default .bashrc file for webide user ****"
96
95
cp " $WEBIDE_ROOT /scripts/.bashrc" " $WEBIDE_HOME "
97
96
You can’t perform that action at this time.
0 commit comments