Browse files

Install npm via the package manager on non-OS X systems.

  • Loading branch information...
1 parent 1284826 commit 0995ab31737da0f7465533dc08fd07ebf1f126e1 @benhoskings committed Oct 6, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 deps/pkg_managers.rb
View
11 deps/pkg_managers.rb
@@ -19,13 +19,24 @@
end
dep 'npm' do
+ requires {
+ on :osx, 'npm.src'
+ otherwise 'npm.bin'
+ }
+end
+
+dep 'npm.src' do
requires 'nodejs.bin'
met? { which 'npm' }
meet {
log_shell "Installing npm", "curl https://npmjs.org/install.sh | #{'sudo' unless which('node').p.writable?} sh"
}
end
+dep 'npm.bin' do
+ provides 'npm >= 1.1'
+end
+
dep 'pip' do
requires {
on :osx, 'pip.src'

0 comments on commit 0995ab3

Please sign in to comment.