本文へスキップ

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.

Node.js 22.12 or newer. pnpm 10 for source checkouts.

Terminal window
node -v
npm -v

kolo: 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.

Terminal window
npm prefix -g
echo "$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:

Terminal window
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).

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.