Build failure on Windows - "cannot locate executable with configuration name node"

9 views
Skip to first unread message

David Racicot

unread,
Oct 15, 2025, 12:08:05 PMOct 15
to PreTeXt support
Hello everyone,

I’m having trouble building a PreTeXt project locally on my Windows machine. It used to work fine when my colleague and I set it up together a few months ago, but now I can no longer get a successful build.

I'm using PreTeXt version 2.29.0 on Windows 10. I used the basic commands "pretext build" and "pretext view".

Error message (from the logs):

"critical: PTX:ERROR: cannot locate executable with configuration name `node` as command `node`
critical: ***  Edit the configuration file  ("pretext.cfg" or "project.ptx") and/or install  ***
critical: ***  the necessary program and/or make sure the executable is on your PATH         ***
critical: Failed to build without errors.  Exiting..."


What’s strange is that the project seemed to build successfully back in August: I could view the HTML output and even add WeBWorK exercises. Now, when I run the same commands, I still get an HTML preview, but it seems to be showing previously built files rather than generating new ones.

Thank you very much for your help!

David Racicot-Desloges

Oscar Levin

unread,
Oct 15, 2025, 12:32:45 PMOct 15
to pretext...@googlegroups.com
Hi David,

A recent change the PreTeXt is likely trying to build a new theme for the HTML.  I'm guessing you are requesting an older theme in your publication file.

Your best bet is to install node.  You can download the Windows Installer (.msi file) here: https://nodejs.org/en/download/current.  

You might also want to update the HTML theme.  You can follow the directions in the guide: Subsection 44.4.12: HTML Style (Theme)

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/7c050478-5386-44ac-84fd-df81797b9f75n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages