Skip to content

Commit

Permalink
fix(doctor): fixed when registry is offline
Browse files Browse the repository at this point in the history
  • Loading branch information
milaninfy committed Sep 26, 2024
1 parent 6df1716 commit 3faefd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/doctor.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class Doctor extends BaseCommand {
async checkPing () {
log.info('doctor', 'Pinging registry')
try {
await ping({ ...this.npm.flatOptions, retry: false })
await ping({ ...this.npm.flatOptions, cache: false })
return ''
} catch (er) {
if (/^E\d{3}$/.test(er.code || '')) {
Expand Down

0 comments on commit 3faefd0

Please sign in to comment.