This is a puppet module that installs NodeJS 0.6.12 from source, installs npm, and creates an npm provider.
NodeJS and npm are both installed into /home/node/opt/bin for the node user.
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, }
For installing nodejs from source you need a lot of RAM, 512MB are not enough, 2GB are much better for your VM