node-ffprobe-installer
node-ffprobe-installer copied to clipboard
Cannot find module '@ffprobe-installer/linux-x64/ffprobe'
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`?
@SavageCore can you help?
I'm seeing this same problem also.
@jcham Did you fix?
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