1 diff --git a/src/bokeh/util/compiler.py b/src/bokeh/util/compiler.py
2 index 4f4314ac8..726610f4c 100644
3 --- a/src/bokeh/util/compiler.py
4 +++ b/src/bokeh/util/compiler.py
5 @@ -411,8 +411,8 @@ def _detect_nodejs() -> Path:
6 raise RuntimeError(f'node.js v{version_repr} or higher is needed to allow compilation of custom models ' +
7 '("conda install nodejs" or follow https://nodejs.org/en/download/)')
9 -_nodejs: Path | None = None
10 -_npmjs: Path | None = None
11 +_nodejs = "@node_bin@"
14 def _nodejs_path() -> Path: