cli
cli copied to clipboard
[BUG] `npm ping` freezes when internet is off
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.

Expected Behavior
The command gives me an error saying the request failed.
Steps To Reproduce
- Turn of WiFi
- Run
npm ping - See it freeze
Environment
- OS: Ubuntu 20.04.2 LTS
- Node: v16.3.0
- npm: 7.19.1