It looks like your Dockerfile
starts with 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. 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.