How can I specify a Node.js version for my app?

Hatchbox lets you specify the Node.js version in your app if you don't want to use the default version.

Written by Chris Oliver
Updated over a week ago
By default, Hatchbox will use a recent Node.js LTS version for your application. If you need to run a different version, you can specify it with a .tool-versions file.

`.tool-versions` file
Since we use ASDF for language management, you can add Node.js to a .tool-versions file in the root of your repository.
echo "nodejs 18.12.1" > .tool-versions
git add .tool-versions
git commit -m "Set nodejs version"
Git push and deploy
After you've set your Node.js version, push to your git repository and start a new deployment of your app on Hatchbox.

Was this article helpful?