1diff --git a/bokeh/util/compiler.py b/bokeh/util/compiler.py
2index a752aad7d..8af05ff63 100644
3--- a/bokeh/util/compiler.py
4+++ b/bokeh/util/compiler.py
5@@ -442,8 +442,8 @@ def _detect_nodejs():
6 raise RuntimeError('node.js v%s or higher is needed to allow compilation of custom models ' % version +
7 '("conda install nodejs" or follow https://nodejs.org/en/download/)')
8
9-_nodejs = None
10-_npmjs = None
11+_nodejs = "@node_bin@"
12+_npmjs = "@npm_bin@"
13
14 def _nodejs_path():
15 global _nodejs