im试图与Heroku托管不和谐的机器人。 如果我在计算机上启动该机器人,则该机器人可以完美运行,但是当我将其上传到heroku时,它会崩溃。 这是控制台输出:
2020-06-17T13:06:28.372931+00:00 app[worker.1]: internal/modules/cjs/loader.js:638
2020-06-17T13:06:28.372939+00:00 app[worker.1]: throw err;
2020-06-17T13:06:28.372940+00:00 app[worker.1]: ^
2020-06-17T13:06:28.372940+00:00 app[worker.1]:
2020-06-17T13:06:28.372941+00:00 app[worker.1]: Error: Cannot find module './rest/RESTManager'
2020-06-17T13:06:28.372963+00:00 app[worker.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
2020-06-17T13:06:28.372964+00:00 app[worker.1]: at Function.Module._load (internal/modules/cjs/loader.js:562:25)
2020-06-17T13:06:28.372964+00:00 app[worker.1]: at Module.require (internal/modules/cjs/loader.js:692:17)
2020-06-17T13:06:28.372965+00:00 app[worker.1]: at require (internal/modules/cjs/helpers.js:25:18)
2020-06-17T13:06:28.372965+00:00 app[worker.1]: at Object.<anonymous> (/app/node_modules/discord.js/src/client/Client.js:5:21)
2020-06-17T13:06:28.372966+00:00 app[worker.1]: at Module._compile (internal/modules/cjs/loader.js:778:30)
2020-06-17T13:06:28.372966+00:00 app[worker.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
2020-06-17T13:06:28.372967+00:00 app[worker.1]: at Module.load (internal/modules/cjs/loader.js:653:32)
2020-06-17T13:06:28.372967+00:00 app[worker.1]: at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
2020-06-17T13:06:28.372968+00:00 app[worker.1]: at Function.Module._load (internal/modules/cjs/loader.js:585:3)
2020-06-17T13:06:28.397002+00:00 app[worker.1]: npm ERR! code ELIFECYCLE
2020-06-17T13:06:28.397365+00:00 app[worker.1]: npm ERR! errno 1
我一直在寻找模块rest或rest manager,但没有找到任何模块。