You can specify a Node.js version for site in Gatsby Cloud in two different ways, by environment variable or .nvmrc file. If you don't set a Node version, Gatsby cloud will use the following defaults:
- The default Node.js version is
- If you are using NPM 7, the default is
You can set your Node.js version using the
NODE_VERSION environment variable inside Gatsby Cloud. Read more about setting environment variables here.
You can include a
.nvmrc file in your project repository, and Gatsby Cloud will read the node version from that file.
NOTE: NODE_VERSION environment variable takes precedence over .nvmrc file.