TehNut / AniSchedule

A Discord bot that notifies you when a new anime episode has aired
MIT License
39 stars 15 forks source link

Issue with starting it #9

Closed ChrisYeet closed 2 years ago

ChrisYeet commented 4 years ago

According to npm node dist/AniSchedule.js is failing. npm-debug.log

TehNut commented 4 years ago

using node@v4.2.6

I would hazard a guess that it's because of this. Node 4.2.6 is over 4 years old and isn't even considered LTS anymore. The latest LTS version is 10.x.

Try updating node and running it again

ChrisYeet commented 4 years ago

I get this error still.

anischedule@2.0.2 start /root/AniSchedule node dist/AniSchedule.js

node:internal/modules/cjs/loader:903 throw err; ^

Error: Cannot find module '/root/AniSchedule/dist/AniSchedule.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:900:15) at Function.Module._load (node:internal/modules/cjs/loader:745:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:72:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }

npm ERR! Failed at the anischedule@2.0.2 start script 'node dist/AniSchedule.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the anischedule package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node dist/AniSchedule.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs anischedule npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls anischedule npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /root/AniSchedule/npm-debug.log 2020-10-22T00_47_58_363Z-debug.log

TehNut commented 4 years ago

Just to be sure, you did run npm build first, right?

ChrisYeet commented 4 years ago

Npm install then npm build yeah. On Oct 21, 2020, 11:26 PM -0700, Nick Ignoffo notifications@github.com, wrote:

Just to be sure, you did run npm build first, right? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

mattthw commented 2 years ago

@BanMeNerd did you resolve the issue? I am using the latest node and it hangs at

             ├─9795 npm start
             ├─9806 sh -c node dist/AniSchedule.js
             └─9807 node dist/AniSchedule.js