简体   繁体   English

Angular CLI 需要最低 Node.js 版本 v14.20、v16.13 或 v18.10

[英]The Angular CLI requires a minimum Node.js version of either v14.20, v16.13 or v18.10

I am getting this error although I am already have node js version 14.20.0, so can anyone please let me know what is the problem?尽管我已经拥有 node js 版本 14.20.0,但我收到此错误,所以任何人都可以让我知道问题是什么吗?

PS C:\asu-mobile\moodleapp> ionic build
> npm.cmd run ionic:build:before

> moodlemobile@4.0.2 ionic:build:before C:\asu-mobile\moodleapp
> gulp

[15:41:18] Using gulpfile C:\asu-mobile\moodleapp\gulpfile.js
[15:41:18] Starting 'default'...
[15:41:18] Starting 'lang'...
[15:41:18] Starting 'env'...
[15:41:19] Finished 'env' after 744 ms
[15:41:20] Finished 'lang' after 1.32 s
[15:41:20] Finished 'default' after 1.32 s
> ng.cmd run app:build
Node.js version v14.15.0 detected.
The Angular CLI requires a minimum Node.js version of either v14.20, v16.13 or v18.10.

Please update your Node.js version or visit https://nodejs.org/ for additional instructions.

[ERROR] An error occurred while running subprocess ng.
        
        ng.cmd run app:build exited with exit code 3.
        
        Re-running this command with the --verbose flag may provide more information.
PS C:\asu-mobile\moodleapp> node --version
v14.20.0

Seems you have multiple node versions on your machine.似乎您的机器上有多个节点版本。 Use a node package manager and make sure your on the proper one.使用节点包管理器并确保您使用的是正确的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 docker 构建出现错误,检测到节点 v10,Angular CLI 需要 v12.14 或 v14.15 的最低 Node.js 版本 - docker build gives error, node v10 detected, The Angular CLI requires a minimum Node.js version of either v12.14 or v14.15 无法读取未定义的属性“fetchSpec”,在执行“npm ci”时出现此错误我有节点 v14.20 - Cannot read property 'fetchSpec' of undefined, getting this error when doing `npm ci` i have node v14.20 '您正在运行 Node.js 的版本 ' + process.version + ',Angular CLI v6 不支持该版本 - 'You are running version ' + process.version + ' of Node.js, which is not supported by Angular CLI v6 如何在Linux上升级angular-cli? CLI v6不支持Node.js V6.14.3 - How to upgrade angular-cli on Linux? Node.js V6.14.3 not supported by CLI v6 ng 构建失败并显示“您正在运行 Node.js 的 v8.11.3 版本,Angular CLI 8.0+ 不支持该版本。” - ng build fails with “You are running version v8.11.3 of Node.js, which is not supported by Angular CLI 8.0+.” 如何验证node.js版本(node -v除外) - How to verify node.js version (other than node -v) Webpacker需要Node.js> = v6.4,并且您正在使用v5.4.0 - Webpacker requires Node.js >= v6.4 and you are using v5.4.0 node.js语法错误:意外令牌{在v0.10.43版中 - node.js SyntaxError: Unexpected token { in Version v0.10.43 Firebase CLI v11.1.0 与 Node.js v16.1.0 不兼容 - Firebase CLI v11.1.0 is incompatible with Node.js v16.1.0 无法构建 Angular - “检测到 Node.js 版本 v10.6.0。” - Unable to build Angular - "Node.js version v10.6.0 detected."
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM