Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jorge644240 opened this issue Dec 7, 2021 · 4 comments

Comments

@Jorge644240
Copy link

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.

@stvrsdagkalakis
Copy link

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

@Jorge644240
Copy link
Author

No. I'm using tinify on the backend.

@rkoopmans
Copy link
Contributor

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?

@mauriciomassaia
Copy link

I know this issue still open and there isn't a proper solution. So I ended up using this postinstall script to inject the cacert.pem into the Client.js and I was able to use it properly. https://gist.github.com/mauriciomassaia/d766fd157b16c48d9cbe2af7ef56a44d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants