binance-exchange/node-binance-api

模块安装失败

eliomain opened this issue · 1 comments

npm install node-binance-api --save

控制台输出
npm ERR! Linux 2.6.32-642.6.2.el6.x86_64
npm ERR! argv "/usr/local/nodejs/bin/node" "/usr/local/bin/npm" "install" "node-binance-api" "--save"
npm ERR! node v6.11.3
npm ERR! npm v3.10.10
npm ERR! code ENOSELF

npm ERR! Refusing to install node-binance-api as a dependency of itself
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /home/wwwroot/request/binance/node-binance-api-master/npm-debug.log

debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/nodejs/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli 'node-binance-api',
1 verbose cli '--save' ]
2 info using npm@3.10.10
3 info using node@v6.11.3
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData node-binance-api
8 silly fetchNamedPackageData node-binance-api
9 silly mapToRegistry name node-binance-api
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry raw: 'node-binance-api',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry escapedName: 'node-binance-api',
12 silly mapToRegistry name: 'node-binance-api',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/node-binance-api
14 verbose get https://registry.npmjs.org/node-binance-api not expired, no request
15 silly install normalizeTree
16 silly loadCurrentTree Finishing
17 silly loadIdealTree Starting
18 silly install loadIdealTree
19 silly cloneCurrentTree Starting
20 silly install cloneCurrentTreeToIdealTree
21 silly cloneCurrentTree Finishing
22 silly loadShrinkwrap Starting
23 silly install loadShrinkwrap
24 silly loadShrinkwrap Finishing
25 silly loadAllDepsIntoIdealTree Starting
26 silly install loadAllDepsIntoIdealTree
27 silly rollbackFailedOptional Starting
28 silly rollbackFailedOptional Finishing
29 silly runTopLevelLifecycles Finishing
30 silly install printInstalled
31 verbose stack Error: Refusing to install node-binance-api as a dependency of itself
31 verbose stack at checkSelf (/usr/local/nodejs/lib/node_modules/npm/lib/install/validate-args.js:53:14)
31 verbose stack at Array. (/usr/local/nodejs/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
31 verbose stack at LOOP (/usr/local/nodejs/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
31 verbose stack at chain (/usr/local/nodejs/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5)
31 verbose stack at /usr/local/nodejs/lib/node_modules/npm/lib/install/validate-args.js:16:5
31 verbose stack at /usr/local/nodejs/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35
31 verbose stack at Array.forEach (native)
31 verbose stack at /usr/local/nodejs/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:11
31 verbose stack at Array.forEach (native)
31 verbose stack at asyncMap (/usr/local/nodejs/lib/node_modules/npm/node_modules/slide/lib/async-map.js:51:8)
32 verbose cwd /home/wwwroot/request/binance/node-binance-api-master
33 error Linux 2.6.32-642.6.2.el6.x86_64
34 error argv "/usr/local/nodejs/bin/node" "/usr/local/bin/npm" "install" "node-binance-api" "--save"
35 error node v6.11.3
36 error npm v3.10.10
37 error code ENOSELF
38 error Refusing to install node-binance-api as a dependency of itself
39 error If you need help, you may report this error at:
39 error https://github.com/npm/npm/issues
40 verbose exit [ 1, true ]

Happy to help if you need it, but you should update npm and node.

npm -v
6.0.1

node -v
v8.4.0