Skip to content

Commit

Permalink
Require node version check for cssbuilder npm install (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascholerChemeketa authored Jan 16, 2025
1 parent 71b80be commit f96e68f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pretext/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit f96e68f

Please sign in to comment.