Skip to content

Add Npm to 'Path' of NodeTask #134

@cdietrich

Description

@cdietrich

Running on a machine with no node/npm installed

When i execute a NodeTask calling a Module that calls Npm via exec then it wont find npm / use the destroyed symlink extracted. thus it would be nice if this would work out of the box instead of using

task npmInstallNpm(type: NpmTask, dependsOn: npmSetup) {
    group 'Node'
    description 'Installs NPM"'
    args = [ 'install', '-g', 'npm' ]
}

here is what the node module vsce does (one of may npm calls)

require('child_process').exec('npm -v' ....)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions