node.jseclipsemacoswildwebdeveloper

How to force Eclipse to use specific version of NodeJS to fix error "Node.js version could not be determined"?


I've installed latest version of Eclipse-IDE (2020-03) with installer option "Eclipse IDE for Web and JavaScript Developers". It is very slow. It takes 2-3 seconds to open a file. And finally following error is shown: Error Node.JS version could not be determined.


Solution

  • Culprit is actually Eclipse Wild Web Developer. It cannot find my NodeJS install done with Homebrew. To fix, I have executed :

    cd /Applications/Eclipse.app/Contents/Eclipse
    echo -Dorg.eclipse.wildwebdeveloper.nodeJSLocation=$(which node) >> eclipse.ini