Skip to content

Error: No error log file #45

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

Open
Talha76 opened this issue Jan 16, 2024 · 1 comment
Open

Error: No error log file #45

Talha76 opened this issue Jan 16, 2024 · 1 comment

Comments

@Talha76
Copy link

Talha76 commented Jan 16, 2024

The file I used to generate pdf is:

import latex from "node-latex";
import * as fs from "fs";

const input = fs.createReadStream("template.tex");
const output = fs.createWriteStream("output.pdf");
const pdf = latex(input);

pdf.pipe(output);
pdf.on("error", err => console.error(err));
pdf.on("finish", () => console.log("PDF generated!"));

When I run this file, I get the following error:

Error: No error log file.
    at /home/*/node_modules/node-latex/index.js:38:36
    at FSReqCallback.oncomplete (node:fs:199:21)

Please look into this issue @saadq.

@Lino-Sousa
Copy link

@Talha76 Also had this error. Seems like the problem was that pdlatex did not have write privileges to the temp directory. Reinstalling pdflatex as administrator solved the issue.

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

2 participants