所以,我一直在试图安装使用现在的电报机器人,但我得到了ELIFECYCLE打字时的错误npm start。我有最新版本的 nodejs 和 npm。
该脚本确实有效,因为当我运行时node index.js效果很好,只有当我尝试npm start或尝试立即部署它时才会出现问题。
我在最新的 Fedora 上运行这个
所以这是我尝试运行时的错误 npm start
[root@localhost my-telegram-bot]# npm start
> telegram-bot@1.0.0 start /home/fedora/Scrivania/my-telegram-bot
> node index.js
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::430
at Object.exports._errnoException (util.js:1020:11)
at exports._exceptionWithHostPort (util.js:1043:20)
at Server._listen2 (net.js:1258:14)
at listen (net.js:1294:10)
at Server.listen (net.js:1390:5)
at EventEmitter.listen (/home/fedora/Scrivania/my-telegram-
bot/node_modules/express/lib/application.js:618:24)
at Object.<anonymous> (/home/fedora/Scrivania/my-telegram-bot/index.js:43:5)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
npm ERR! Linux 4.13.5-200.fc26.x86_64 …Run Code Online (Sandbox Code Playgroud)