My issue was caused by node command not found by gradle.
# fixed by linking the node path to the /usr/bin/node # node is binary was located in $HOME/.nvm/versions/node/v14.13.0/bin/node sudo ln -s $(which node) /usr/bin/node When I run the above command the issue above disappeared.
If you are getting "Operation not permitted" error, please use the following:
# you might need to create the /usr/local/bin directory if it doesn't exist sudo ln -s $(which node) /usr/local/bin/node