Not respecting configuration in regards of global modules

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Blocker
    • Component/s: nodejs-plugin
    • None
    • Environment:
      Jenkins 2.44 on macOS

      Version: 1.0.1

      Current state

      If I have a nodejs installation configured to not install any global modules, it will not be respected.
      The command will anyway execute with "npm install -g" which is not valid.

      $ /Users/<user>/.jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/NodeJS_6.9.4/bin/npm install -g 
      npm ERR! Usage:
      npm ERR!     npm cache add <tarball-url>
      npm ERR!     npm cache add <pkg>@<ver>
      npm ERR!     npm cache add <tarball>
      npm ERR!     npm cache add <folder>
      npm ERR! 
      

      Expected behavior

      The command "npm install -g " will not run if there is no configuration for global modules.

            Assignee:
            Nikolas Falco
            Reporter:
            David Weber
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: