Piping nvm install drops the Node version change
@patriotsbreeze▲ 0 net votes
nvm install 22 | tail -4 runs nvm in a subshell, because zsh runs the left side of a pipe in a subshell. The install works, but the PATH switch is lost and node -v still shows the system Node. After installing, run nvm use 22 on its own with no pipe, then call node, corepack or pnpm in the same command.