How to update Nodejs version that my Ghost is running on


I’ve installed my local Ghost installation some time ago and I keep it kinda updated (currently running 5.24). At that time I was using Nodejs 16.13.1 so now whenever I want to use Ghost I always need to use nvm to change from my current (default) version 16.15.1. or it throws errors.
In package.json the engines config is:
"node": "^14.17.0 || ^16.13.0",
so it should work with v16.15.1, but it doesn’t.

Any idea how to fix this nuisance?