tinify-nodejs
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
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.
Possible duplicate of issue #30. Are you using a bundler?
No. I'm using tinify on the backend.
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?