Commit dcf36ea6 authored by system_user's avatar system_user

Fixing the node, node_current, node_stable installation issues

parent 802be475
......@@ -7,6 +7,7 @@ class Node < Package
depends_on 'buildessential'
depends_on 'python27'
depends_on 'openssl_devel'
def self.build
system "CC='gcc' python2.7 ./configure --without-snapshot"
......@@ -16,6 +17,6 @@ class Node < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages
system "sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}"
system "sudo chown -R chronos /usr/local/lib/node_modules"
end
end
......@@ -8,6 +8,8 @@ class Node_current < Package
depends_on 'buildessential'
depends_on 'python27'
depends_on 'openssl_devel'
def self.build
system "CC='gcc' python2.7 ./configure --without-snapshot"
system "make"
......@@ -16,6 +18,6 @@ class Node_current < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages
system "sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}"
system "sudo chown -R chronos /usr/local/lib/node_modules"
end
end
......@@ -16,6 +16,7 @@ class Node_stable < Package
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages
system "sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}"
system "sudo chown -R chronos /usr/local/lib/node_modules"
echo "node_stable has been depricated. Please install node_current to get the latest changes"
end
end
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