这是完整的错误输出。
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/opt/alt/alt-nodejs12/root/usr/bin/node',
1 verbose cli '/opt/alt/alt-nodejs12/root/usr/bin/npm',
1 verbose cli 'start'
1 verbose cli ]
2 info using npm@6.14.6
3 info using node@v12.18.3
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle crypto-trading-bot@0.0.0~prestart: crypto-trading-bot@0.0.0
6 info lifecycle crypto-trading-bot@0.0.0~start: crypto-trading-bot@0.0.0
7 verbose lifecycle crypto-trading-bot@0.0.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle crypto-trading-bot@0.0.0~start: PATH: /opt/alt/alt-nodejs12/root/usr/lib/node_modules/npm/node_modules.bundled/npm-lifecycle/node-gyp-bin:/home/crypbotc/repositories/crypto-trading-bot/node_modules/.bin:/opt/alt/alt-nodejs12/root/usr/bin:/home/crypbotc/nodevenv/repositories/crypto-trading-bot/12/bin:/opt/alt/alt-nodejs12/root/usr/bin:/home/crypbotc/nodevenv/repositories/crypto-trading-bot/12/lib/bin/:/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin:/opt/cpanel/composer/bin:/home/crypbotc/.local/bin:/home/crypbotc/bin
9 verbose lifecycle crypto-trading-bot@0.0.0~start: CWD: /home/crypbotc/repositories/crypto-trading-bot
10 silly lifecycle crypto-trading-bot@0.0.0~start: Args: [ '-c', 'node index.js trade' ]
11 silly lifecycle crypto-trading-bot@0.0.0~start: Returned: code: 1 signal: null
12 info lifecycle crypto-trading-bot@0.0.0~start: Failed to exec start script
13 verbose stack Error: crypto-trading-bot@0.0.0 start: `node index.js trade`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/opt/alt/alt-nodejs12/root/usr/lib/node_modules/npm/node_modules.bundled/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess.<anonymous> (/opt/alt/alt-nodejs12/root/usr/lib/node_modules/npm/node_modules.bundled/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid crypto-trading-bot@0.0.0
15 verbose cwd /home/crypbotc/repositories/crypto-trading-bot
16 verbose Linux 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64
17 verbose argv "/opt/alt/alt-nodejs12/root/usr/bin/node" "/opt/alt/alt-nodejs12/root/usr/bin/npm" "start"
18 verbose node v12.18.3
19 verbose npm v6.14.6
20 error code ELIFECYCLE
21 error errno 1
22 error crypto-trading-bot@0.0.0 start: `node index.js trade`
22 error Exit status 1
23 error Failed at the crypto-trading-bot@0.0.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
说实话,即时通讯不知道我应该从哪里开始,节点上还是终端使用中都是新的。 只是想测试该脚本的个人用途和娱乐性,但现在已经尝试使其运行3天:D
这是软件包文件
{
"name": "crypto-trading-bot",
"version": "0.0.0",
"author": "Daniel Espendiller",
"bugs": "https://github.com/Haehnchen/crypto-trading-bot/issues",
"contributors": [
{
"email": "daniel@espendiller.net",
"name": "Daniel Espendiller",
"url": "http://espend.de/"
},
{
"email": "phuc@nguyenminhphuc.com",
"name": "Phuc Nguyen Minh",
"url": "https://nguyenminhphuc.com/"
}
],
"dependencies": {
"async": "^3.2.0",
"basic-auth": "^2.0.1",
"better-queue": "^3.8.10",
"better-sqlite3": "^5.4.2",
"binance-api-node": "^0.10.4",
"bitfinex-api-node": "^3.0.2",
"bitmex-realtime-api": "^0.4.0",
"ccxt": "^1.32.75",
"coinbase-pro": "^0.9.0",
"colors": "^1.3.2",
"commander": "^4.1.1",
"compression": "^1.7.4",
"cookie-parser": "^1.4.5",
"express": "^4.16.4",
"http": "0.0.0",
"lodash": "^4.17.19",
"mocha": "^7.1.2",
"moment": "^2.25.3",
"nodemailer": "^6.4.6",
"numbro": "^2.2.0",
"p-queue": "^6.4.0",
"passenger": "^1.0.0",
"patch-package": "^6.2.2",
"percent": "^2.2.0",
"queue": "^6.0.1",
"queue-promise": "^1.3.33",
"request": "^2.88.2",
"sendmail": "^1.4.1",
"talib": "^1.0.5",
"technicalindicators": "^3.1.0",
"telegraf": "^3.38.0",
"ts-node": "^8.10.1",
"tulind": "^0.8.15",
"twig": "^1.15.1",
"typescript": "^3.9.2",
"winston": "^3.2.1",
"ws": "^7.3.0",
"zero-fill": "^2.2.3"
},
"engines": {
"node": "^8.3.0 || ^10"
},
"homepage": "https://github.com/coinbase/coinbase-pro-node",
"keywords": [
"cryptocurrency",
"crypto",
"exchange",
"trading",
"trading-bot",
"trading-strategies",
"websocket",
"nodejs",
"bitfinex",
"bitmex",
"binance",
"tradingview",
"bot",
"javascript"
],
"license": "MIT",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/Haehnchen/crypto-trading-bot.git"
},
"scripts": {
"start": "node index.js trade",
"postinstall": "patch-package",
"test": "mocha 'test/**/*.test.js'",
"setup": "pm2 deploy ecosystem.config.js production setup",
"deploy": "pm2 deploy ecosystem.config.js production"
},
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-node": "^4.0.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.20.0",
"prettier": "^1.19.1"
}
}
还有它的github链接是https://github.com/Haehnchen/crypto-trading-bot
由于我不能使用sudo,因此第一步是不可能的,因为它指出那里也不需要。
我在那里尝试做的其他事情。用键等配置所有文件。
我唯一不确定的是Web服务器ip,因为我使用共享主机,所以我真的没有IP只能使用共享的IP。