-
I installed a newer version of Node.js in the /Applications/Eclipse.app/Contents/Eclipse/.node directory and removed the old version, but running a js file as a Node Application causes the old version to be reinstalled. I need to upgrade because our corporate security is bitching about the old version. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
If you're using WildWebDeveloper, it provides its own embedded version of Node.js (you can update from the latest snapshot using this p2 site: https://download.eclipse.org/wildwebdeveloper/snapshots). In case if for some reason you cannot update, you can instruct WWD to use a custom Node.js installation by setting up the |
Beta Was this translation helpful? Give feedback.
-
Thanks -- I tried adding this site and attempted installation but got this error: |
Beta Was this translation helpful? Give feedback.
-
Thank you. I've tried that, but evidently, whichever plugin is updating the Eclipse/.node directory will replace the deleted version with the version it wants (which is outdated and causes vulnerability scanners to complain). In other words, the setting I added to eclipse.ini to define the desired location doesn't seem to have any effect. |
Beta Was this translation helpful? Give feedback.
-
Yes, I've installed in /opt and set the definition to point to the node file like: It also worked on my M1 MacBook using: Thank you. |
Beta Was this translation helpful? Give feedback.
-
Issue #335 seems also relevant to this discussion. |
Beta Was this translation helpful? Give feedback.
If you're using WildWebDeveloper, it provides its own embedded version of Node.js (you can update from the latest snapshot using this p2 site: https://download.eclipse.org/wildwebdeveloper/snapshots).
In case if for some reason you cannot update, you can instruct WWD to use a custom Node.js installation by setting up the
org.eclipse.wildwebdeveloper.nodeJSLocation
system property, see https://github.com/eclipse-wildwebdeveloper/wildwebdeveloper/blob/master/TIPS_and_FAQ.md#use-embedded-nodejs for details.