I want to run the command npm run myScript within my built plan, with an Inline Script task, but I'm getting an error that npm was not found:
/mnt/data/bamboo-home/temp/ESR-WRITETEST5-JOB1-4-ScriptBuildTask-3554693384958793235.sh: 1: /mnt/data/bamboo-home/temp/ESR-WRITETEST5-JOB1-4-ScriptBuildTask-3554693384958793235.sh: npm: not found
When on localhost, I need to be within the /app directory in my project, in order to run npm commands. Apparently Bamboo puts the script in a temporary folder, outside of the project, thus npm is not found. Do you know how to overcome this issue?
This is the configuration of the task:
Screen Shot 2016-12-29 at 12.32.56.png