Skip to content

Commit 6df1716

Browse files
author
Milan Meva
committed
fix(ping): ping fixed when registry is offline
1 parent 63d6a73 commit 6df1716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/ping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Ping extends BaseCommand {
1212
const cleanRegistry = redact(this.npm.config.get('registry'))
1313
log.notice('PING', cleanRegistry)
1414
const start = Date.now()
15-
const details = await pingUtil({ ...this.npm.flatOptions })
15+
const details = await pingUtil({ ...this.npm.flatOptions, cache: false })
1616
const time = Date.now() - start
1717
log.notice('PONG', `${time}ms`)
1818
if (this.npm.config.get('json')) {

0 commit comments

Comments
 (0)