From f96e68f3437611f295398563fd0817a44859e5ce Mon Sep 17 00:00:00 2001 From: ascholerChemeketa Date: Thu, 16 Jan 2025 12:48:40 -0800 Subject: [PATCH] Require node version check for cssbuilder npm install (#903) --- pretext/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pretext/utils.py b/pretext/utils.py index 0180dca8..408a2030 100644 --- a/pretext/utils.py +++ b/pretext/utils.py @@ -531,7 +531,7 @@ def ensure_css(xml: Path, pub_file: str, stringparams: t.Dict[str, str]) -> None "Attempting to install/update required node packages to generate css from sass." ) try: - subprocess.run("npm install", shell=True) + subprocess.run("npm install --engine-strict=true", shell=True) except Exception as e: log.critical( "Unable to install required npm packages to build css files. To use your selected HTML theme, you must have node.js and npm installed."