cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] `npm ping` freezes when internet is off

Open Yash-Singh1 opened this issue 4 years ago • 0 comments

Is there an existing issue for this?

  • [X] 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

Yash-Singh1 avatar Jul 25 '21 18:07 Yash-Singh1