-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# Install NodeJS | ||
|
||
SETUP="/vagrant/vagrant-setup" | ||
PPWD=$PWD | ||
|
||
if [ -d "/usr/share/nodejs" ] | ||
then | ||
|
||
echo "NodeJS is already installed, nothing done!" | ||
|
||
else | ||
|
||
source $SETUP/include.sh | ||
|
||
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash - | ||
|
||
yum install -y nodejs | ||
./node --version | ||
|
||
cd $PPWD | ||
|
||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
# Install NodeJS 8.12.2 | ||
|
||
SETUP="/vagrant/vagrant-setup" | ||
PPWD=$PWD | ||
|
||
if [ -d "/usr/share/nodejs" ] | ||
then | ||
|
||
echo "NodeJS is already installed, nothing done!" | ||
|
||
else | ||
|
||
source $SETUP/include.sh | ||
|
||
cd /usr/share | ||
wget_and_untar http://nodejs.org/dist/v8.12.0/ node-v8.12.0-linux-x64.tar.gz | ||
mv node-v8.12.0-linux-x64 nodejs | ||
cd /usr/bin | ||
ln -s /usr/share/nodejs/bin/node node | ||
ln -s /usr/share/nodejs/bin/npm npm | ||
cd /usr/share/nodejs/bin | ||
./node --version | ||
./npm config set strict-ssl false | ||
./npm -g install bower concurrently express express-generator supervisor typescript tslint | ||
cd /usr/bin | ||
ln -s /usr/share/nodejs/bin/bower bower | ||
ln -s /usr/share/nodejs/bin/express express | ||
ln -s /usr/share/nodejs/bin/tsc tsc | ||
ln -s /usr/share/nodejs/bin/concurrently concurrently | ||
|
||
cd $PPWD | ||
|
||
fi |