ANSIBLE.NPM(3)                  ANSIBLE MODULES                 ANSIBLE.NPM(3)



NAME
       npm - Manage node.js packages with npm

DESCRIPTION
       Manage node.js packages with Node Package Manager (npm)

OPTIONS
       executable
              The executable location for npm.This is useful if you are using
              a version manager, such as nvm

       global Install the node.js library globally Choices: yes,no.

       name   The name of a node.js library to install

       path   The base path where to install the node.js libraries

       production
              Install dependencies in production mode, excluding
              devDependencies

       state  The state of the node.js library Choices: present,absent,latest.
              (default: present)

       version
              The version to be installed.

EXAMPLES
       description: Install "coffee-script" node.js package.
       - npm: name=coffee-script path=/app/location

       description: Install "coffee-script" node.js package on version 1.6.1.
       - npm: name=coffee-script version=1.6.1 path=/app/location

       description: Install "coffee-script" node.js package globally.
       - npm: name=coffee-script global=yes

       description: Remove the globally package "coffee-script".
       - npm: name=coffee-script global=yes state=absent

       description: Install packages based on package.json.
       - npm: path=/app/location

       description: Update packages based on package.json to their latest version.
       - npm: path=/app/location state=latest

       description: Install packages based on package.json using the npm installed with nvm v0.10.1.
       - npm: path=/app/location executable=/opt/nvm/v0.10.1/bin/npm state=present



AUTHOR
       Chris Hoffman

SEE ALSO
       ansible(1), http://ansible.github.com/modules.html#npm



1.4.5                             2014-02-12                    ANSIBLE.NPM(3)
