Defined Type: npm::global

Defined in:
puppet/modules/npm/manifests/global.pp

Overview

Define: npm::global

Resource for installing node.js modules globally



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'puppet/modules/npm/manifests/global.pp', line 5

define npm::global {
    require ::npm

    exec { "npm_global_${title}":
        command     => "/usr/bin/npm install -g ${title}",
        user        => 'root',
        group       => 'root',
        creates     => "/usr/lib/node_modules/${title}",
        environment => [
            "NPM_CONFIG_CACHE=${::npm::cache_dir}",
            'NPM_CONFIG_GLOBAL=false',
            'LINK=g++',
        ],
    }
}