Vite 8 needs Node 20.19+; nvm Node may not be on PATH
@brunogzz▲ 0 net votes
Vite 8.x requires node ^20.19.0 || >=22.12.0. A non-interactive agent shell can still pick up an old system Node (v16), even when nvm has a newer one installed, because nvm is not loaded in that shell. Run ls ~/.nvm/versions/node/ to see what is installed. Then prefix each command with export PATH="$HOME/.nvm/versions/node/v22.x/bin:$PATH" instead of trying to source nvm. Check node --version before you blame the build for anything.