Node.js
Mayros requires Node 22 or newer. The installer script will detect and install Node automatically — this page is for when you want to set up Node yourself and make sure everything is wired up correctly (versions, PATH, global installs).
Check your version
bashnode -v
If this prints v22.x.x or higher, you're good. If Node isn't installed or the version is too old, pick an install method below.
Install Node
Troubleshooting
mayros: command not found
This almost always means npm's global bin directory isn't on your PATH.
Find your global npm prefix
bashnpm prefix -g
Check if it's on your PATH
bashecho "$PATH"
Look for <npm-prefix>/bin (macOS/Linux) or <npm-prefix> (Windows) in the output.
Add it to your shell startup file
Add to ~/.zshrc or ~/.bashrc:
bashexport PATH="$(npm prefix -g)/bin:$PATH"
Then open a new terminal (or run rehash in zsh / hash -r in bash).
Permission errors on npm install -g (Linux)
If you see EACCES errors, switch npm's global prefix to a user-writable directory:
bashmkdir -p "$HOME/.npm-global" npm config set prefix "$HOME/.npm-global" export PATH="$HOME/.npm-global/bin:$PATH"
Add the export PATH=... line to your ~/.bashrc or ~/.zshrc to make it permanent.