title: Jenkings error: Exec exit status not zero. Status [-1] when I try to run npm install in the exec command
body: <p>I have a Jenkins server in my localhost that is trying to connect to a remote server. Using the plugin ssh publish over I am copying my workspace to a folder in my remote server. 
  Now what I whould like to do is ones the folders are copied across I would like to run npm install and npm start from jenkins to start the node service in the remote computer but I get the following error:</p>
  
  <p>SSH: EXEC: STDOUT/STDERR from command [npm intall &amp;&amp; npm start &amp;&amp; exit
  ] ...
  SSH: EXEC: completed after 200 ms
  SSH: Disconnecting configuration [api] ...
  ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [-1]]
  Build step 'Send build artifacts over SSH' changed build result to UNSTABLE
  Finished: UNSTABLE</p>
  
  <p>my screen in my job looks like this :
  <a href="https://i.stack.imgur.com/ZEsAr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZEsAr.png" alt="enter image description here"></a></p>
  
  <p>can someone tell me why this simple exec commands are making the build unstable? the files are being copied fine the only problem re the commands which don't do anything.
  Thanks</p>