Skip to content

[BUG] npm ping freezes when internet is off #3576

Description

@Yash-Singh1

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I run npm ping without WiFi, then it just freezes.

Screenshot from 2021-07-25 11-20-05

Expected Behavior

The command gives me an error saying the request failed.

Steps To Reproduce

  1. Turn of WiFi
  2. Run npm ping
  3. See it freeze

Environment

  • OS: Ubuntu 20.04.2 LTS
  • Node: v16.3.0
  • npm: 7.19.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingPriority 2secondary priority issueRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions