Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running npm start #103

Open
allysir2 opened this issue Apr 25, 2020 · 2 comments
Open

Error when running npm start #103

allysir2 opened this issue Apr 25, 2020 · 2 comments

Comments

@allysir2
Copy link

node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated.
In the future, you will have to enable it yourself.
See yagop/node-telegram-bot-api#319. internal\modules\cjs\loader.js:1156:30
[DEBUG] Bot is starting...
error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 404 Not Found"}
error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 404 Not Found"}
error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 404 Not Found"}
error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 404 Not Found"}
error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 404 Not Found"}
error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 404 Not Found"}
error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 404 Not Found"}
error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 404 Not Found"}
error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 404 Not Found"}
error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 404 Not Found"}
error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 404 Not Found"}
error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 404 Not Found"}

@neranjanaprasad
Copy link

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]
6 silly lifecycle [email protected]
prestart: no script for prestart, continuing
7 info lifecycle [email protected]start: [email protected]
8 verbose lifecycle [email protected]
start: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/neranjanaprsd/aria-telegram-mirror-bot/node_modules/.bin:/usr/local/bi$
10 verbose lifecycle [email protected]
start: CWD: /home/neranjanaprsd/aria-telegram-mirror-bot
11 silly lifecycle [email protected]start: Args: [ '-c',
11 silly lifecycle 'NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js' ]
12 silly lifecycle [email protected]
start: Returned: code: 1 signal: null
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:920:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
15 verbose pkgid [email protected]
16 verbose cwd /home/neranjanaprsd/aria-telegram-mirror-bot
17 error Linux 4.9.0-11-amd64
18 error argv "/usr/bin/node" "/usr/bin/npm" "start"
19 error node v6.17.1
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error [email protected] start: NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js
22 error Exit status 1
23 error Failed at the [email protected] start script 'NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the mirror-bot package,

@iamLiquidX
Copy link

Install npm property by 'sudo apt-get install npm' if you are using cli. Search google for other installation methods .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants