npm / npm-registry-client

http://npm.im/npm-registry-client
ISC License
264 stars 108 forks source link

retry.count config not working #162

Closed json2d closed 6 years ago

json2d commented 7 years ago

I'm setting the # of retry attempts like this:

const RegClient = require('npm-registry-client')
const client = new RegClient({retry:{count:0}})

but the outcome is still the default behavior (2 retries)

npm-registry-client@8.4.0 OS: Windows 10

mfellner commented 6 years ago

The documentation is inaccurate. It should be retries, not count. See https://github.com/npm/npm-registry-client/blob/latest/index.js#L35.