[英]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.