Skip to content
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

CB() never called error during docker build #3516

Closed
1 task done
sarsampath opened this issue Jul 5, 2021 · 4 comments
Closed
1 task done

CB() never called error during docker build #3516

sarsampath opened this issue Jul 5, 2021 · 4 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release

Comments

@sarsampath
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

#11 154.4 npm ERR! cb() never called!
#11 154.4
#11 154.4 npm ERR! This is an error with npm itself. Please report this error at:
#11 154.4 npm ERR! https://npm.community
#11 154.7
#11 154.8 npm ERR! A complete log of this run can be found in:
#11 154.8 npm ERR! /root/.npm/_logs/2021-07-05T14_19_27_535Z-debug.log

Expected Behavior

Latest version of Npm and Node should install using docker

Steps To Reproduce

FROM node:14-alpine3.12 as build-step
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
COPY . .
ENV HTTPS_PROXY="http://on.cypress.io/proxy-configuration"
RUN npm cache verify && npm install
RUN CMD["npm","start"]
FROM nginx:1.19-alpine
COPY --from=build-step /usr/src/app/dist/AngularApp-Shell/ /usr/share/nginx/html

Environment

  • OS:
  • Node:
  • npm:
@sarsampath sarsampath added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Jul 5, 2021
@shirshak55
Copy link

shirshak55 commented Jul 15, 2021

i am also seeing similar errors. Maybe I need to stick to yarn.

@wraithgar
Copy link
Member

npm v7.20.0 added some things that should catch more of these network errors. It also added some new debugging messages specifically for this error message. Can you try with that version and also include any debug logs it generates?

@shirshak55
Copy link

shirshak55 commented Jul 16, 2021

@wraithgar i am very surprised about this instruction. I just went to nodejs.org downloaded the latest node which is supposed to have the latest npm but the version I got was 7.19.1? I am on windows so I usually use msi images to upgrade which is correct way afaik?

@ljharb
Copy link
Contributor

ljharb commented Jul 16, 2021

the latest node only has the latest npm at the time it was released; the latest npm was released after every current node version. run npm install -g npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

5 participants