I found myself in a situation where I need to run one command, for example. node compile.js
so the .js file should run the following
browserify -t jadeify client/app.js -o bundle.js
All dependencies are installed, and when you run this command in the CLI, everything is fine, you just need to figure out how to execute it from the node script.
We also got the following inside our package.json that contains something similar to
"script" : [ "compile": "browserify -t jadeify client/app.js -o bundle.js" ] this works fine when you execute cd /project && npm run compile through ssh but not through exec
thanks
source share