From 67fd53401199a8fd7d5c4bf5dec1cf2e6047d4d8 Mon Sep 17 00:00:00 2001 From: Rashid Dilkash Date: Thu, 15 Dec 2022 18:16:23 +0530 Subject: [PATCH] Expected version error error jest@29.3.1: The engine "node" is incompatible with this module. Expected version "^14.15.0 || ^16.10.0 || >=18.0.0". Got "12.22.12" error Found incompatible module. --- linux-docker-fundamentals/Dockerfiles/novice/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-docker-fundamentals/Dockerfiles/novice/Dockerfile b/linux-docker-fundamentals/Dockerfiles/novice/Dockerfile index d745e93..d221127 100644 --- a/linux-docker-fundamentals/Dockerfiles/novice/Dockerfile +++ b/linux-docker-fundamentals/Dockerfiles/novice/Dockerfile @@ -12,7 +12,7 @@ WORKDIR /app COPY . . # runs a command and creates an image layer. Used to install packages into containers -RUN yarn install --production +RUN yarn install --production --ignore-engines # provides a command and arguments for an executing container. Parameters can be overridden. There can be ONLY one CMD. CMD ["node", "src/index.js"] @@ -30,4 +30,4 @@ EXPOSE 3000 # ADD - copies files and directories to the container. Can unpack local .tar files # ARG - defines a variable to pass to Docker at build-time. # ENTRYPOINT - provides command and arguments for an executing container. Arguments persist. -# VOLUME - creates a directory mount point to access and store persistent data. \ No newline at end of file +# VOLUME - creates a directory mount point to access and store persistent data.