Skip to content

[BUG] <title> UNABLE_TO_GET_ISSUER_CERT_LOCALLY #7991

Closed
@Fraudstopper

Description

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

When I ran docker build -t welcome-to-docker . I received the following error message "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: /root/.npm/_logs/2024-12-18T17_11_12_349Z-debug-0.log
npm error code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm error errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm error request to https://registry.npmjs.org/serve failed, reason: unable to get local issuer certificate
npm error A complete log of this run can be found in: /root/.npm/_logs/2024-12-18T17_11_12_349Z-debug-0.log"

I made sure node.js and npm were up to date and installed and reran the same command however got the same result.

Expected Behavior

was supposed to create a image file.

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...
  5. Clone the repository git clone https://github.com/docker/welcome-to-docker
  6. Run cd welcome-to-docker
  7. verify Dockerfile in project directory
  8. run docker build -t welcome-to-docker .

Environment

  • npm:
  • Node.js:
  • OS Name:
  • System Model Name:
  • npm config:
; copy and paste output from `npm config ls` here

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions