During initial set up I had issues running the script due to my outdated Node version (which is a requirement for some other projects I'm working on). This adds an explicit .node-version file so NVM or similar can pick up on it.
The error I was getting was the following since the argument was only introduced in Node 20
node --env-file=.env index.js
node: bad option: --env-file=.env
During initial set up I had issues running the script due to my outdated Node version (which is a requirement for some other projects I'm working on). This adds an explicit
.node-version
file so NVM or similar can pick up on it.The error I was getting was the following since the argument was only introduced in Node 20