Jean-Pierre Matsumoto
Jean-Pierre Matsumoto

Reputation: 2315

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.

Upvotes: 1

Views: 3398

Answers (2)

Kim jae-eok
Kim jae-eok

Reputation: 1

SpringToolSuite4 is as follows:

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

Upvotes: 0

Jean-Pierre Matsumoto
Jean-Pierre Matsumoto

Reputation: 2315

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

Upvotes: 6

Related Questions