Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module '@ffprobe-installer/linux-x64/ffprobe' #274

Open
xts-bit opened this issue Oct 18, 2023 · 4 comments
Open

Cannot find module '@ffprobe-installer/linux-x64/ffprobe' #274

xts-bit opened this issue Oct 18, 2023 · 4 comments

Comments

@xts-bit
Copy link

xts-bit commented Oct 18, 2023

While deploying code on Vercel this package gives this error, using node 18 which is the latest version of @ffprobe-installer/ffprobe, However, it works fine on my local machine.

My Code:

import { path as ffprobePath } from '@ffprobe-installer/ffprobe';

router.get("/get-ffprobe", async (req, res) => {
    res.status(200).json({ ffprobePath })
})

Error:

Cannot find module '@ffprobe-installer/linux-x64/ffprobe'
Require stack:
- /var/task/node_modules/@ffprobe-installer/ffprobe/index.js
Did you forget to add it to "dependencies" in `package.json`?
@xts-bit
Copy link
Author

xts-bit commented Oct 20, 2023

@SavageCore can you help?

@jcham
Copy link

jcham commented Oct 26, 2023

I'm seeing this same problem also.

@xts-bit
Copy link
Author

xts-bit commented Oct 30, 2023

@jcham Did you fix?

@antti-manninen-vmv
Copy link

I had this too. It was most likely caused by bug in npm cli. node_modules needs to be removed before recreating package-lock.json.

npm/cli#4828

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants