Jenkins : java.io.IOException: Cannot run program "node": error=2, No such file or directory Jenkins : java.io.IOException: Cannot run program "node": error=2, No such file or directory jenkins jenkins

Jenkins : java.io.IOException: Cannot run program "node": error=2, No such file or directory


You need to symlink the nodejs executable to node

sudo ln -s "$(which nodejs)" /usr/local/bin/node

Hope this helps!


I am having the same problem.

I got this error in Mac when I had Node installed via nvm

Try Uninstall it , and install via NodeJS Site.

LINK - https://nodejs.org/en/

You will get rid of this error.