I cant install opencv

why?
/app/node_modules/opencv/utils/find-opencv.js:21

            throw new Error("ERROR: failed to run: pkg-config", opencv, flag);

            ^

Error: ERROR: failed to run: pkg-config

Hey @perronosaurio, welcome to the Glitch forum!

From a quick search, it seems like for https://www.npmjs.com/package/opencv to work you need to have opencv itself installed. Here are some docs about installing it on Ubuntu. Since we don’t allow root access it looks to me like it’s not realistic to install the opencv package in your project’s container, so the opencv npm package won’t work either.

Sorry for the inconvenience!

Can I ask what happens here? the user said his glitch uses opencv.js?

that one looks like it has an asm.js (?) built library built into a .js file, served on Glitch as a static file. i.e., they didn’t have to install opencv on glitch. we don’t have publicly viewable information about how they compiled that though