如何在Eclipse(Windows操作系统)中设置Node.js版本

如何在Eclipse(Windows操作系统)中设置Node.js版本,node.js,angular,eclipse,npm,angular-cli,Node.js,Angular,Eclipse,Npm,Angular Cli,在Eclipse中尝试运行“ng serve”时,它返回以下错误: You are running version v6.9.4 of Node.js, which is not supported by Angular CLI 8.0+. The official Node.js version that is supported is 10.9 or greater. 在Eclipse终端中运行“node-v”时,返回:v6.9.4 在命令提示符下运行“node-v”时,返回:v10.1

在Eclipse中尝试运行“ng serve”时,它返回以下错误:

You are running version v6.9.4 of Node.js, which is not supported by Angular CLI 8.0+.
The official Node.js version that is supported is 10.9 or greater.
  • 在Eclipse终端中运行“node-v”时,返回:v6.9.4
  • 在命令提示符下运行“node-v”时,返回:v10.16.3

如何在Eclipse中升级node版本以使用Angular CLI?

据我所知,我认为没有一种集成Eclipse的方法来完成此过程。您只需从此处下载node.js+npm,然后打开一个终端或cmd,然后在node.js项目目录中单击“npm install myPackage”

如果您只需要v10,您可以尝试卸载旧版本,或者如果需要保留这两个版本,您可以使用,然后使用“nvm use[arch]”