node-ffprobe-installer icon indicating copy to clipboard operation
node-ffprobe-installer copied to clipboard

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

Open xts-bit opened this issue 10 months ago • 4 comments

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 avatar Oct 18 '23 08:10 xts-bit

@SavageCore can you help?

xts-bit avatar Oct 20 '23 07:10 xts-bit

I'm seeing this same problem also.

jcham avatar Oct 26 '23 09:10 jcham

@jcham Did you fix?

xts-bit avatar Oct 30 '23 14:10 xts-bit

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.

https://github.com/npm/cli/issues/4828

antti-manninen-vmv avatar Nov 17 '23 09:11 antti-manninen-vmv