Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I keep getting "env: node: No such file or directory" running Grunt on Eclipse as an external tool under MacOS Yosemite

Eclipse (Luna) is clearly launching grunt as the external build tool. However, the Eclipse console keeps showing the "env: node: No such file or directory" message and the grunt tasks do not get to run.

I can successfully run grunt on the command line (outside Eclipse) after moving to the project directory.

The node installer did place it on /usr/local/bin/node but apparently grunt is expecting it somewhere else.

Suggestions?

like image 498
Bienvenido Velez Avatar asked Nov 28 '22 04:11

Bienvenido Velez


1 Answers

if you are using Homebrew try

brew unlink node

then

 brew link node
like image 52
heLL0 Avatar answered Dec 06 '22 13:12

heLL0