4
votes

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?

4

4 Answers

21
votes

if you are using Homebrew try

brew unlink node

then

 brew link node
9
votes

I discovered that grunt is apparently expecting node to live on /usr/bin, yet the installer placed it on /usr/local/bin.

Solution:

sudo ln -s /usr/local/bin/node /usr/bin/node

Hope helps.

2
votes

The "External Tools Configurations" dialog has a tab for setting the environment the command will run in. In this tab, press "Select..." and select "PATH...". Once it's there you can edit the Value to append ":/usr/local/bin". After this both "node" and "npm" are found and commands work just fine.

1
votes
sudo chown -R $USER /usr/local
brew unlink node
brew link node