tinify-nodejs icon indicating copy to clipboard operation
tinify-nodejs copied to clipboard

Error: ENOENT: no such file or directory, open '/var/www/visbanking.com/node_modules/tinify/lib/tinify/../data/cacert.pem

Open Jorge644240 opened this issue 3 years ago • 4 comments

When running my node.js server, on any machine, for the first time, it throws this error. I solved it on my laptop by uninstalling and installing the package again, but since I don't have root user access to my company's AWS server, I can't do that there. So I decided to check the file system for the file that's supposed to be missing, and found out that when installing the package there is no 'data' folder inside the lib directory even though it does exist here on the GitHub repo.

Jorge644240 avatar Dec 07 '21 20:12 Jorge644240

Possible duplicate of issue #30. Are you using a bundler?

stvrsdagkalakis avatar Dec 09 '21 09:12 stvrsdagkalakis

No. I'm using tinify on the backend.

Jorge644240 avatar Dec 09 '21 12:12 Jorge644240

Hi Jorge,

Sorry for the late response.

Could you share steps to reproduce?

  • How did you install the tinify npm package
  • On what operating system and what version of node/yarn?

rkoopmans avatar Feb 28 '22 14:02 rkoopmans