Node.js and PATH
このコンテンツはまだ日本語訳がありません。
The installer bundle ships its own Node.js runtime; nothing on the machine is required and nothing
on PATH is read. This page is for package installs (npm/pnpm) and source checkouts.
Version
Section titled “Version”Node.js 22.12 or newer. pnpm 10 for source checkouts.
node -vnpm -vkolo: command not found after npm install -g
Section titled “kolo: command not found after npm install -g”The directory where npm puts global binaries is not on your shell’s PATH.
npm prefix -gecho "$PATH"If $(npm prefix -g)/bin (Linux, macOS) or $(npm prefix -g) (Windows) is not in PATH, add it
to your shell profile and open a new shell:
export PATH="$(npm prefix -g)/bin:$PATH"Or avoid the problem: install with the bundle, which links kolo into a bin directory of your
choice (--bin-dir, default ~/.local/bin).
Version managers
Section titled “Version managers”When the gateway runs as a service, the service unit records the absolute path of the runtime it was
installed with. A version manager that swaps the active Node.js later does not affect the service;
re-run kurahi service install --id <id> after changing the runtime you want it to use.
kurahi doctor warns when the service runs on a version-managed Node.js path.