Commit ace7a840 authored by Damian Montero's avatar Damian Montero Committed by GitHub

Update node.rb

parent 2404635f
require 'package' require 'package'
class Node < Package class Node < Package
version '4.4.7' version '4.4.5'
source_url 'https://nodejs.org/dist/v4.4.7/node-v4.4.7.tar.xz' source_url 'https://nodejs.org/dist/v4.4.5/node-v4.4.5.tar.xz'
source_sha1 'a39d03d04a79af2220ca94a8735e7acbe180c4e5' source_sha1 'be0af595facab8be2dd8fa64c051c4c5a7ec0c4a'
depends_on 'buildessential' depends_on 'buildessential'
depends_on 'python27' depends_on 'python27'
depends_on 'openssl_devel'
def self.build def self.build
system "CC='gcc' python2.7 ./configure --without-snapshot" system "CC='gcc' python2.7 ./configure --without-snapshot"
...@@ -17,7 +16,6 @@ class Node < Package ...@@ -17,7 +16,6 @@ class Node < Package
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
#Fix Permissiongs for -g installs of node packages #Fix Permissiongs for -g installs of node packages
system "echo 'Now to get npm -g working you should type this'" system "sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}"
system "echo 'sudo chown -R chronos /usr/local/lib/node_modules'"
end end
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