首页 > 解决方案 > 如何在 Eclipse(Windows 操作系统)中设置 Node.js 版本

问题描述

尝试在 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 中的节点版本以使用 Angular CLI?

标签: node.jsangulareclipsenpmangular-cli

解决方案


据我所知,我不认为有一个 eclipse 集成的方式来完成这个过程。您只需从此处https://nodejs.org/download/release/下载 node.js + npm ,然后打开终端或 cmd 并在您的 node.js 项目目录中,然后右键“npm install myPackage”


推荐阅读