On 2017.2, OSX 10.11.16. When I run an external tool, the output panel states:
env: node: no such file or directory
process exited with code 127
However, if I take the EXACT code this ran, and paste it into the terminal, it runs and completes without issue.
I found an article here on Stack Overflow which explained a step which allowed PHPStorm to complete the External Tool w/o need to paste the code into the terminal, but he never went beyond the why's or how's of it. That post is located here:
In short, he states "PHPStorm attempts to run a command to pull the ENV vars out of the OS, but is failing to" Sure enough, when I do what he suggests, running:
open -a ~/Applications/PHPStorm.app
I can run the external tool without issue. So does anyone know what I can do to get PHPStorm to just run the External Tool script without issue?