Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
1.648 npm warn using --force Recommended protections disabled.
152.0 npm error Exit handler never called!
152.0 npm error This is an error with npm itself. Please report this error at:
152.0 npm error https://github.com/npm/cli/issues
152.0
152.1
152.1 npm error A complete log of this run can be found in: /root/.npm/_logs/2024-07-11T01_38_27_566Z-debug-0.log
Expected Behavior
expected to build docker image but throws that error when it gets to npm install.
Use the official Node.js image as a base
FROM node:18.20.4
Set the working directory
WORKDIR /home/nick/backend
Install app dependencies
COPY package*.json ./
RUN npm install
Copy the rest of the application code
COPY . .
Build the TypeScript code
RUN npm run build
Expose the port the app runs on
EXPOSE 35001
Command to run the app
CMD ["node", "dist/index.js"]
Steps To Reproduce
No response
Environment
- npm: 10.8.2
- Node.js: 18.20.4
- OS Name: Ubuntu 22.04.4 LTS
- System Model Name: Server
- npm config:
; node bin location = /root/.nvm/versions/node/v18.20.4/bin/node
; node version = v18.20.4
; npm local prefix = /home/nick/backend
; npm version = 10.8.2
; cwd = /home/nick/backend
; HOME = /root
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
1.648 npm warn using --force Recommended protections disabled.
152.0 npm error Exit handler never called!
152.0 npm error This is an error with npm itself. Please report this error at:
152.0 npm error https://github.com/npm/cli/issues
152.0
152.1
152.1 npm error A complete log of this run can be found in: /root/.npm/_logs/2024-07-11T01_38_27_566Z-debug-0.log
Expected Behavior
expected to build docker image but throws that error when it gets to npm install.
Use the official Node.js image as a base
FROM node:18.20.4
Set the working directory
WORKDIR /home/nick/backend
Install app dependencies
COPY package*.json ./
RUN npm install
Copy the rest of the application code
COPY . .
Build the TypeScript code
RUN npm run build
Expose the port the app runs on
EXPOSE 35001
Command to run the app
CMD ["node", "dist/index.js"]
Steps To Reproduce
No response
Environment