I am trying to run an AppleScript that runs a node command like I would run it in terminal and appear to have the right start with the code, but I'm getting hung up on Automator not recognizing the
sh: node: command not found. Can anyone point me to the reason why automator can't locate node (node command as in Node.js. Node.js is installed on my machine)?
Here is my AppleScript:
do shell script "cd /Users/user/Desktop/Projects/node/cli && node app.js DesktopUSA"