diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-09-11 00:39:27 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-09-11 00:56:22 +0300 |
commit | 2b97a57186340d1b79917a5e427e60ccc30a2a10 (patch) | |
tree | e35b5e47c82223a665071112c20ff2a061d5a1b8 /lib | |
parent | 21532977ee66b3cb87b802e75808d72b6b0daae4 (diff) |
adduser: remove obsolescent process.binding use
Fixes: #9544
PR-URL: https://github.com/npm/npm/pull/9549
Diffstat (limited to 'lib')
-rw-r--r-- | lib/adduser.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/adduser.js b/lib/adduser.js index cd4db2b5d..630a2c5e6 100644 --- a/lib/adduser.js +++ b/lib/adduser.js @@ -7,7 +7,7 @@ var userValidate = require('npm-user-validate') var crypto try { - crypto = process.binding('crypto') && require('crypto') + crypto = require('crypto') } catch (ex) {} adduser.usage = 'npm adduser [--registry=url] [--scope=@orgname] [--always-auth]' |