[英]docker build gives error, node v10 detected, The Angular CLI requires a minimum Node.js version of either v12.14 or v14.15
It looks like your Dockerfile
starts with node:10-alpine
.看起来您的
Dockerfile
以node:10-alpine
开头。 The ng build
command will use this Node version, not the one in your local machine, because it is running inside that Docker container. ng build
命令将使用这个 Node 版本,而不是本地机器上的那个,因为它在 Docker 容器内运行。 As the error message says, you need to increase this to a more recent version.正如错误消息所说,您需要将其增加到更新的版本。
eg change例如改变
FROM node:10-alpine
to至
FROM node:14.18-alpine
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.