Commit 48faffb9 authored by Damian Montero's avatar Damian Montero Committed by GitHub

having the user run a line we cannot

parent 23150a33
......@@ -16,6 +16,12 @@ 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}"
echo "************************************************************"
echo "Now run:"
echo "sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}"
echo "To be able to do"
echo "npm install -g"
echo "without being SUDO"
echo "************************************************************"
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