diff --git a/lib/adduser.js b/lib/adduser.js index b65eee170bcc7..38520edb232e5 100644 --- a/lib/adduser.js +++ b/lib/adduser.js @@ -33,8 +33,9 @@ function adduser (args, cb) { log.disableProgress() + let auth try { - const auth = require('./auth/' + npm.config.get('auth-type')) + auth = require('./auth/' + npm.config.get('auth-type')) } catch (e) { return cb(new Error('no such auth module')) }