https://volta.sh/ is a better nvm alternative. it detects the node version in your project if engines has been configured in your package.json .

"engines": {
  "node": "18.x"
},