We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Same error on stage 5 on any operating system. Сhecked on Windows 10 / Fedora / Linux mint. How can I fix this error and start the container?
Log on Fedora:
user@fedora:~$ sudo docker build -t rats-search:latest rats-search [+] Building 105.9s (9/12) docker:default => [internal] load build definition from Dockerfile 0.2s => => transferring dockerfile: 419B 0.0s => [internal] load metadata for docker.io/library/node:16 1.5s => [internal] load .dockerignore 0.1s => => transferring context: 2B 0.0s => [1/8] FROM docker.io/library/node:16@sha256:f77a1aef2da8d83e45ec990f45df50f1a286c 0.0s => [internal] load build context 62.6s => => transferring context: 1.45GB 62.4s => CACHED [2/8] RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home 0.0s => CACHED [3/8] WORKDIR /home/node/app 0.0s => [4/8] COPY --chown=node:node . . 37.9s => ERROR [5/8] RUN npm install -g npm 3.2s ------ > [5/8] RUN npm install -g npm: 2.858 npm ERR! code EBADENGINE 2.860 npm ERR! engine Unsupported engine 2.860 npm ERR! engine Not compatible with your version of node/npm: [email protected] 2.861 npm ERR! notsup Not compatible with your version of node/npm: [email protected] 2.861 npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"} 2.861 npm ERR! notsup Actual: {"npm":"8.19.4","node":"v16.20.2"} 2.862 2.862 npm ERR! A complete log of this run can be found in: 2.862 npm ERR! /root/.npm/_logs/2024-02-23T16_27_11_634Z-debug-0.log ------ Dockerfile:6 -------------------- 4 | WORKDIR /home/node/app 5 | COPY --chown=node:node . . 6 | >>> RUN npm install -g npm 7 | USER node 8 | -------------------- ERROR: failed to solve: process "/bin/sh -c npm install -g npm" did not complete successfully: exit code: 1 user@fedora:~1$ node -v v20.10.0 user@fedora:~127$ npm -v 10.2.3
Log on Windows 10:
PS C:\Windows\system32> docker build -t rats-search:latest rats-search [+] Building 9.1s (9/12) docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 373B 0.0s => [internal] load metadata for docker.io/library/node:16 8.2s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [1/8] FROM docker.io/library/node:16@sha256:f77a1aef2da8d83e45ec990f45df50f1a286c5fe8bbfb8c6e4246c6389705c0b 0.0s => [internal] load build context 0.0s => => transferring context: 16.86kB 0.0s => CACHED [2/8] RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app 0.0s => CACHED [3/8] WORKDIR /home/node/app 0.0s => CACHED [4/8] COPY --chown=node:node . . 0.0s => ERROR [5/8] RUN npm install -g npm 0.8s ------ > [5/8] RUN npm install -g npm: 0.737 npm ERR! code EBADENGINE 0.738 npm ERR! engine Unsupported engine 0.738 npm ERR! engine Not compatible with your version of node/npm: [email protected] 0.738 npm ERR! notsup Not compatible with your version of node/npm: [email protected] 0.738 npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"} 0.738 npm ERR! notsup Actual: {"npm":"8.19.4","node":"v16.20.2"} 0.739 0.739 npm ERR! A complete log of this run can be found in: 0.739 npm ERR! /root/.npm/_logs/2024-02-23T17_25_11_432Z-debug-0.log ------ Dockerfile:6 -------------------- 4 | WORKDIR /home/node/app 5 | COPY --chown=node:node . . 6 | >>> RUN npm install -g npm 7 | USER node 8 | -------------------- ERROR: failed to solve: process "/bin/sh -c npm install -g npm" did not complete successfully: exit code: 1 View build details: docker-desktop://dashboard/build/default/default/8k5zq1hkarouseu9uthykyez8 PS C:\Windows\system32>
The text was updated successfully, but these errors were encountered:
use another docker image for node, you using node:16, but
node:16
0.738 npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"}
Sorry, something went wrong.
No branches or pull requests
Doesn't run in Docker image mode
Same error on stage 5 on any operating system.
Сhecked on Windows 10 / Fedora / Linux mint.
How can I fix this error and start the container?
The text was updated successfully, but these errors were encountered: