Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
560 views
in Technique[技术] by (71.8m points)

javascript - 使用discord.js-musicbot-addon运行discord bot时出错:找不到模块'm3u8stream / lib / parse-time'(Error running discord bot with discord.js-musicbot-addon: Cannot find module 'm3u8stream/lib/parse-time')

Recently, after installing discord.js-musicbot-addon on a discord.js bot of mine, I seem to get this error whenever I try to run it:

(最近,在我的discord.js机器人上安装discord.js-musicbot-addon之后,每次尝试运行它时,我似乎都会收到此错误:)

PS O:OmDiscord BotsBikerBot> node main.js
internal/modules/cjs/loader.js:800
    throw err;
    ^

Error: Cannot find module 'm3u8stream/lib/parse-time'
Require stack:
- O:OmDiscord BotsBikerBot
ode_modulesdiscord.js-musicbot-addon
ode_modulesytdl-corelibinfo-extras.js
- O:OmDiscord BotsBikerBot
ode_modulesdiscord.js-musicbot-addon
ode_modulesytdl-corelibinfo.js
- O:OmDiscord BotsBikerBot
ode_modulesdiscord.js-musicbot-addon
ode_modulesytdl-corelibindex.js
- O:OmDiscord BotsBikerBot
ode_modulesdiscord.js-musicbot-addonindex.js
- O:OmDiscord BotsBikerBotmain.js
[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)[39m
[90m    at Function.Module._load (internal/modules/cjs/loader.js:690:27)[39m
[90m    at Module.require (internal/modules/cjs/loader.js:852:19)[39m
[90m    at require (internal/modules/cjs/helpers.js:74:18)[39m
    at Object.<anonymous> (O:OmDiscord BotsBikerBot
ode_modules[4mdiscord.js-musicbot-addon[24m
ode_modules[4mytdl-core[24mlibinfo-extras.js:5:21)
[90m    at Module._compile (internal/modules/cjs/loader.js:959:30)[39m
[90m    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)[39m
[90m    at Module.load (internal/modules/cjs/loader.js:815:32)[39m
[90m    at Function.Module._load (internal/modules/cjs/loader.js:727:14)[39m
[90m    at Module.require (internal/modules/cjs/loader.js:852:19)[39m {
  code: [32m'MODULE_NOT_FOUND'[39m,
  requireStack: [
    [32m'O:\Om\Discord Bots\BikerBot\node_modules\discord.js-musicbot-addon\node_modules\ytdl-core\lib\info-extras.js'[39m,
    [32m'O:\Om\Discord Bots\BikerBot\node_modules\discord.js-musicbot-addon\node_modules\ytdl-core\lib\info.js'[39m,
    [32m'O:\Om\Discord Bots\BikerBot\node_modules\discord.js-musicbot-addon\node_modules\ytdl-core\lib\index.js'[39m,
    [32m'O:\Om\Discord Bots\BikerBot\node_modules\discord.js-musicbot-addon\index.js'[39m,
    [32m'O:\Om\Discord Bots\BikerBot\main.js'[39m
  ]
}

I have tried to reinstall m3u8stream, but this does not seem to fix the problem.

(我试图重新安装m3u8stream,但这似乎不能解决问题。)

You can view my source code here: https://github.com/reachomk/BikerBot/tree/test

(您可以在这里查看我的源代码: https : //github.com/reachomk/BikerBot/tree/test)

Thanks in advance for any help.

(在此先感谢您的帮助。)

  ask by Om K translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...