node.js - 如何在 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 终端中运行“node -v”时,返回:v6.9.4
- 在命令提示符下运行“node -v”时,返回:v10.16.3
如何升级 Eclipse 中的节点版本以使用 Angular CLI?
解决方案
据我所知,我不认为有一个 eclipse 集成的方式来完成这个过程。您只需从此处https://nodejs.org/download/release/下载 node.js + npm ,然后打开终端或 cmd 并在您的 node.js 项目目录中,然后右键“npm install myPackage”
推荐阅读
- angular - 如何清除 Angular 中的 div 内容?(角度 7)
- sql - 获取满足所有条件的记录
- javascript - skybox boxgeometry 没有出现。只显示黑屏
- autodesk-forge - 有关在 Autodesk Forge Reality Capture 中使用测量文件、地面控制点和检查点的问题
- javascript - 谷歌云数据存储,javascript,无法使用 query.order
- forms - Flutter 中的多步骤表单(向导样式) - 最佳方法
- npm - npm start - 如果我将它与另一个脚本一起使用,则 args 不起作用
- git - 需要对提议的 git 流的反馈
- scala - Spark - 在动态条件下从窗口中删除行
- python - 如何从数组中找到元素[带通配符]的索引值?