Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I'm seeing this output in our Docker build in the step RUN npm ci:
#12 [base-build 4/5] RUN npm ci
#12 7.165 npm error Exit handler never called!
#12 7.165 npm error This is an error with npm itself. Please report this error at:
#12 7.165 npm error <https://github.com/npm/cli/issues>
#12 7.166 npm error A complete log of this run can be found in: /root/.npm/_logs/2024-07-19T06_11_36_243Z-debug-0.log
Expected Behavior
RUN npm ci completes successfully and Docker build continues
Steps To Reproduce
Our Dockerfile up to this point:
FROM node:slim as base-build
COPY package.json package-lock.json /site/
WORKDIR /site
RUN npm ci
Extract of package.json:
{
..
"engines": {
"node": ">=16.16.0"
},
..
Then run docker build -t some-tag .
Environment
- OS Name: Ubuntu 22.04.4 (GitHub runner)
Output of npm config ls:
#10 0.500 ; node bin location = /usr/local/bin/node
#10 0.500 ; node version = v22.5.0
#10 0.500 ; npm local prefix = /site
#10 0.500 ; npm version = 10.8.2
#10 0.500 ; cwd = /site
#10 0.500 ; HOME = /root
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I'm seeing this output in our Docker build in the step
RUN npm ci:Expected Behavior
RUN npm cicompletes successfully and Docker build continuesSteps To Reproduce
Our Dockerfile up to this point:
Extract of
package.json:{ .. "engines": { "node": ">=16.16.0" }, ..Then run
docker build -t some-tag .Environment
Output of
npm config ls: