I have a Jenkins server sending commands via SSH to another machine in order to deploy a website, as part of this process I'm using Grunt to build SASS. If I login in to the server and run "grunt build-dev" it works fine, however if I use the following command to send the command to the same server via SSH
ssh myserver.org 'cd /var/www/myserver.org/htdocs/sites/all/themes/myserver; grunt build-dev'
I get an error as following;
npm WARN package.json server@1.0.0 No README data
Running "sass:dev" (sass) task
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Use --force to continue.
Aborted due to warnings.
I have used npm install to add the dependancies for Grunt with no luck, I've also tried adding npm install to the SSH command send to the server which does install the dependancies as expected.