Open
Description
Dockerfile:
FROM node:13.12.0-alpine AS build
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
If I run docker build
it always exits with npm ERR! cb() never called!
After chaning the image to 12.16.0-alpine it works. Also not including package-lock.json
fixes this problem.
The npm *-debug.log file contains nothing useful:
<-- snip downloading and extracting -->
19581 timing npm Completed in 95032ms
19582 error cb() never called!
19583 error This is an error with npm itself. Please report this error at:
19584 error <https://npm.community>
The JS app I try to dockerize here is a freshly generated Angular app.