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