Commit 48e0b13b authored by Aral Balkan's avatar Aral Balkan
Browse files

Merge branch 'installation-fix' into 'master'

Fixed the node installation (version issue).



See merge request !3
parents 85471a7e c43e4a43
......@@ -77,6 +77,9 @@ ensureNodeExists(){
# Note: we do not check for the edge case where Node.js is installed but npm
# isn’t, as npm comes bundled with recent versions of Node.
#
latestNodeLTSVersion=4.4.7
if ! hash node 2>/dev/null; then
echo "\n • Node.js not installed. Installing…"
......@@ -85,10 +88,10 @@ ensureNodeExists(){
mkdir /tmp/node.js
echo " • Downloading Node.js installer (latest LTS)…"
runIn /tmp/node.js "curl -OL https://nodejs.org/dist/latest-argon/node-v4.4.7.pkg"
runIn /tmp/node.js "curl -OL https://nodejs.org/dist/latest-argon/node-v${latestNodeLTSVersion}.pkg"
echo " . Running the Node.js package installer. Please enter your password to continue:"
sudo installer -pkg /tmp/node.js/node-v4.4.4.pkg -target /
echo " Running the Node.js package installer. Please enter your password to continue:"
sudo installer -pkg "/tmp/node.js/node-v${latestNodeLTSVersion}.pkg" -target /
# The OS X installer doesn’t automatically adjust the permissions for /usr/local
# properly. Fix it so we don’t have to use sudo when installing npm modules globally.
......@@ -119,7 +122,7 @@ install(){
echo "\n • Cloning ${humanName}…"
runIn .. "git clone --quiet git@source.ind.ie:${accountName}/${componentToInstall}.git"
echo "\n . Running installation script for ${humanName}…"
echo "\n Running installation script for ${humanName}…"
cd $relativePathToComponent
indentOutput "./install" ' '
cd ../inspector
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment