Skip to content

Latest commit

 

History

History
executable file
·
21 lines (16 loc) · 804 Bytes

README.mdown

File metadata and controls

executable file
·
21 lines (16 loc) · 804 Bytes

Puppet NodeJS module

Description:

This is a puppet module that installs NodeJS 0.6.12 from source, installs npm, and creates an npm provider.

Where it goes:

NodeJS and npm are both installed into /home/node/opt/bin for the node user.

Usage:

Clone this repository into your Puppet submodule directory (git submodule add [email protected]:newLoki/puppet-npm.git modules/nodejs) and use include nodejs in your puppet manifests to install NodeJS by using this package.

If you want to install a npm module, for example uglifyjs, use the following snippet: package { "uglifyjs": ensure => installed, provider => npm, }

Note:

For installing nodejs from source you need a lot of RAM, 512MB are not enough, 2GB are much better for your VM