Skip to content

Commit 710449f

Browse files
author
Milan Meva
committed
fix(doctor): fixed when registry is offline
1 parent 6df1716 commit 710449f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/doctor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class Doctor extends BaseCommand {
139139
async checkPing () {
140140
log.info('doctor', 'Pinging registry')
141141
try {
142-
await ping({ ...this.npm.flatOptions, retry: false })
142+
await ping({ ...this.npm.flatOptions, cache: false, retry: false })
143143
return ''
144144
} catch (er) {
145145
if (/^E\d{3}$/.test(er.code || '')) {

0 commit comments

Comments
 (0)