找不到模块'm3u8stream / lib / parse-time' [英] Cannot find module 'm3u8stream/lib/parse-time'

查看:96
本文介绍了找不到模块'm3u8stream / lib / parse-time'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有解决此问题的方法?我一直试图自己解决这个问题,但是我放弃了

is there anyway to fix this? I've been trying to resolve this myself but I give up

    throw err;
    ^
Error: Cannot find module 'm3u8stream/lib/parse-time'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/rbd/pnpm-volume/71b5ddd8-2a78-46fc-aba4-68049f14880d/node_modules/.registry.npmjs.org/ytdl-core/1.0.0/node_modules/ytdl-core/lib/info-extras.js:5:21)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)


推荐答案

这对我有效,在项目的根目录:

This works for me, at the root of the project:


cp -r。 / node_modules / m3u8stream / dist ./node_modules/m3u8stream/lib

cp -r ./node_modules/m3u8stream/dist ./node_modules/m3u8stream/lib

我真的不明白为什么,我认为这是一些错误版本,(在前面的注释中提到)由于某种原因导致它需要文件夹dist和lib(显然具有相同的内容)

I really don't understand why, I assume is some bug of versions, (mentioned in the previous comments) cause for some reason it needs the both folders dist and lib (with the same content apparently)

这篇关于找不到模块'm3u8stream / lib / parse-time'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆