试图让我的机器人无法正常工作。...运行node.js作为我的最后一步,我得到了错误

时间:2019-12-06 04:40:00

标签: node.js bots discord winston

错误消息如下:

    Error: Cannot find module 'winston'
Require stack:
- C:\Users\Owner\Desktop\DiscordBot\bot.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
at Function.Module._load (internal/modules/cjs/loader.js:690:27)
at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (C:\Users\Owner\Desktop\DiscordBot\bot.js:1:52)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10){
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'C:\\Users\\Owner\\Desktop\\DiscordBot\\bot.js']
}

请帮助...

这个问题比我想象的要困难得多。我猜是有些过时了吗?我不确定

0 个答案:

没有答案