I'm seeing the same thing, confirmed no spaces in global npm packages field, saved again.
00:00:08.923 $ /data/jenkins-slave/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/nodejs-4-latest/bin/npm install -g
00:00:09.597 npm ERR! Usage:
00:00:09.598 npm ERR! npm cache add <tarball-url>
00:00:09.598 npm ERR! npm cache add <pkg>@<ver>
00:00:09.598 npm ERR! npm cache add <tarball>
00:00:09.599 npm ERR! npm cache add <folder>
00:00:09.599 npm ERR!
00:00:09.611 ERROR: Build step failed with exception
00:00:09.611 java.lang.NullPointerException
00:00:09.612 at jenkins.plugins.nodejs.tools.NodeJSInstallation$1.call(NodeJSInstallation.java:92)
00:00:09.612 at jenkins.plugins.nodejs.tools.NodeJSInstallation$1.call(NodeJSInstallation.java:87)
00:00:09.612 at hudson.remoting.UserRequest.perform(UserRequest.java:121)
00:00:09.612 at hudson.remoting.UserRequest.perform(UserRequest.java:49)
00:00:09.612 at hudson.remoting.Request$2.run(Request.java:324)
00:00:09.613 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
00:00:09.613 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
00:00:09.613 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
00:00:09.613 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
00:00:09.613 at hudson.remoting.Engine$1$1.run(Engine.java:63)
00:00:09.614 at java.lang.Thread.run(Thread.java:745)
00:00:09.614 at ......remote call to Channel to /10.130.221.14(Native Method)
00:00:09.614 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1435)
00:00:09.614 at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
00:00:09.614 at hudson.remoting.Channel.call(Channel.java:795)
00:00:09.614 at jenkins.plugins.nodejs.tools.NodeJSInstallation.getExecutable(NodeJSInstallation.java:87)
00:00:09.615 at jenkins.plugins.nodejs.NodeJSCommandInterpreter.perform(NodeJSCommandInterpreter.java:96)
00:00:09.615 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
00:00:09.615 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
00:00:09.615 at hudson.model.Build$BuildExecution.build(Build.java:205)
00:00:09.616 at hudson.model.Build$BuildExecution.doRun(Build.java:162)
00:00:09.616 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
00:00:09.616 at hudson.model.Run.execute(Run.java:1728)
00:00:09.616 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
00:00:09.616 at hudson.model.ResourceController.execute(ResourceController.java:98)
00:00:09.616 at hudson.model.Executor.run(Executor.java:404)
00:00:09.617 Build step 'Execute NodeJS script' marked build as failure
Made a separate job that just has the one npm step with nothing in it (or something simple like 2+2), in this job I only get the above Stacktrace and not the npm install -g error. My jenkins home folder (on the node) does not have anything resembling the xml file you requested. Tool config screenshot is attached. |