找不到模块“ ./client/Client”不一致机器人错误

时间:2019-11-11 09:19:17

标签: node.js module bots discord.js

$ node index.js
internal/modules/cjs/loader.js:895
    throw err;
    ^

Error: Cannot find module './client/Client'
Require stack:
- C:\Users\INO\Desktop\discord-bot-master\index.js
←[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:892
:15)←[39m
←[90m    at Function.Module._load (internal/modules/cjs/loader.js:785:27)←[39m
←[90m    at Module.require (internal/modules/cjs/loader.js:956:19)←[39m
←[90m    at require (internal/modules/cjs/helpers.js:74:18)←[39m
    at Object.<anonymous> (C:\Users\INO\Desktop\discord-bot-master\index.js:3:16
)
←[90m    at Module._compile (internal/modules/cjs/loader.js:1063:30)←[39m
←[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1103:1
0)←[39m
←[90m    at Module.load (internal/modules/cjs/loader.js:914:32)←[39m
←[90m    at Function.Module._load (internal/modules/cjs/loader.js:822:14)←[39m
←[90m    at Function.Module.runMain (internal/modules/cjs/loader.js:1143:12)←[39
m {
  code: ←[32m'MODULE_NOT_FOUND'←[39m,
  requireStack: [ ←[32m'C:\\Users\\INO\\Desktop\\discord-bot-master\\index.js'←[
39m ]
}

那就是我不断得到的错误。

我已经尝试了一切,到处看,并且花了10个小时。 我的文件没有损坏:,,) 我一直回到这个网站,但每个答案都无效。

0 个答案:

没有答案