title: NPM Issue while running from jenkins
body: <p>I am currently facing some issue which are related to gradle/NodeJS. What I did is used Node plugin by writing this in my gradle script:</p>
  
  <pre><code>apply plugin: 'com.moowork.node'
  
  dependencies {
      classpath 'com.moowork.gradle:gradle-node-plugin:0.12'
   }
  </code></pre>
  
  <p>now when I try to run install npm command from terminal(CentOS) by running:</p>
  
  <pre><code>gradle npmInstall
  </code></pre>
  
  <p>it is running perfectly fine and installing all the required packages whereas when I run the same command from Jenkins (Jenkins installed in centos), I am getting following error msg:</p>
  
  <pre><code>:npmInstall FAILED
   FAILURE: Build failed with an exception.
  
  * What went wrong:
    Execution failed for task ':npmInstall'.
    &gt; A problem occurred starting process 'command 'npm''
  
  * Exception is:
  org.gradle.api.tasks.TaskExecutionException: Execution failed for task 
  ':npmInstall'.
  at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
  
  Caused by: org.gradle.process.internal.ExecException: A problem occurred starting process 'command 'npm''
  at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:197)
  
  Caused by: net.rubygrapefruit.platform.NativeException: Could not start 'npm'
  at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:27)
  </code></pre>
  
  <p>Can somebody please help me with is. I am not getting what Wrong I am doing.
  I am also getting the same error msg if try to run following command:</p>
  
  <pre><code>gradle npm_run_build_prod 
  </code></pre>
  
  <p>whereas the same list of commands are working for my local windows jenkins.</p>