-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
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
[BUG] Exit handler never called on npm ci #7666
Comments
This also happens when running |
Got the same issue suddenly in github actions |
Same issue here:
Using Gitlab Runner 17.2.0 on a self hosted instance with docker image |
same here workflow config jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint package.json {
"name": "portfolio",
"version": "1.3.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@tsparticles/react": "^3.0.0",
"@tsparticles/slim": "^3.4.0",
"bootstrap": "^5.3.3",
"next": "14.2.4",
"next-intl": "^3.15.3",
"nodemailer": "^6.9.14",
"react": "^18",
"react-bootstrap": "^2.10.3",
"react-dom": "^18",
"react-google-recaptcha": "^3.1.0",
"react-icons": "^5.2.1",
"react-pdf": "^9.1.0",
"typewriter-effect": "^2.21.0"
},
"devDependencies": {
"eslint": "^8",
"eslint-config-next": "14.2.4"
}
} Install dependencies step: Run npm ci
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v[4](https://github.com/pietrykovsky/portfolio/actions/runs/10004105702/job/27652183338?pr=14#step:4:4) are no longer supported
npm warn deprecated npmlog@5.0.1: This package is no longer supported.
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated gauge@3.0.2: This package is no longer supported.
npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported.
npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm warn deprecated @humanwhocodes/config-array@0.11.1[4](https://github.com/pietrykovsky/portfolio/actions/runs/10004105702/job/27652183338?pr=14#step:4:5): Use @eslint/config-array instead
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm error Exit handler never called!
npm error This is an error with npm itself. Please report this error at:
npm error <https://github.com/npm/cli/issues>
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2024-07-19T07_12_1[5](https://github.com/pietrykovsky/portfolio/actions/runs/10004105702/job/27652183338?pr=14#step:4:6)_242Z-debug-0.log Run linter step: Run npm run lint
npm run lint
shell: /usr/bin/bash -e {0}
> portfolio@1.3.0 lint
> next lint
sh: 1: next: not found
Error: Process completed with exit code 1[2](https://github.com/pietrykovsky/portfolio/actions/runs/10004105702/job/27652183338?pr=14#step:5:2)7. |
Same issue we are facing, any work around? |
Yes, just replace from node:22 to node:22.4. |
actually this issue has been reported earlier - #7657 the workaround for this is to change the |
hey, I am using node:bookworm-slim |
just use the image with older node version <= 22.4.x |
this will affect build size right? |
there might be few mb of difference, try node:22.3.0-bookworm-slim |
thanks all that worked. |
how to do that ? please help? |
Coming for our organization too on GCP! |
Duplicate of: #7657? |
Because of this: npm/cli#7666
RISDEV-0000 There's a bug in node 22.5.0's npm that let's npm ci fail. npm/cli#7666
I am using node:22-alpine in Dockerfile and facing pm error Exit handler never called. Which version is to use |
node:22.4-alpine3.19 seems to work at the moment |
thanks ...its working |
I restricted the max version in my package.json to fix it:
|
Looks like new node image 22.5 have bug in it. Work around would be changing |
Closing Seems similer if not duplicate of #7657. |
npm/cli#7666 indicates it might be something recent.
npm/cli#7666 indicates it might be something recent.
npm/cli#7666 indicates it might be something recent.
I have changed the node version to 20, issue resolved |
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 ci
completes successfully and Docker build continuesSteps To Reproduce
Our Dockerfile up to this point:
Extract of
package.json
:Then run
docker build -t some-tag .
Environment
Output of
npm config ls
:The text was updated successfully, but these errors were encountered: