Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2015-09-11 00:39:27 +0300
committerRebecca Turner <me@re-becca.org>2015-09-11 00:56:22 +0300
commit2b97a57186340d1b79917a5e427e60ccc30a2a10 (patch)
treee35b5e47c82223a665071112c20ff2a061d5a1b8 /lib
parent21532977ee66b3cb87b802e75808d72b6b0daae4 (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.js2
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]'