Skip to content

Instantly share code, notes, and snippets.

@allaire
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allaire/77d2f2e2bf0a7c6b8092 to your computer and use it in GitHub Desktop.
Save allaire/77d2f2e2bf0a7c6b8092 to your computer and use it in GitHub Desktop.
# https://github.com/oortcloud/meteorite#note
$ sudo -H npm install -g meteorite
In chef?
Does not work correctly (missing root privileges):
execute 'install_meteorite' do
user 'myuser'
group 'myuser'
environment ({ 'HOME' => '/root' })
command 'npm install -g meteorite'
end
@danryan
Copy link

danryan commented Jul 2, 2014

execute 'install_meteorite' do
  user 'root'
  group 'root'
  environment ({ 'HOME' => '/root' })
  command 'npm install -g meteorite'
end

@dwradcliffe
Copy link

I would suggest looking at the nodejs cookbook, and use the npm LWRP to install the package.
https://github.com/redguide/nodejs

nodejs_npm 'meteorite'

@allaire
Copy link
Author

allaire commented Jul 2, 2014

@dwradcliffe Thanks for this cookbook. I used it instead of the community site one, cleaned all the junk I had manually compiled in /usr/local, and it started to work again using the nodejs_npm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment