Elian Van Cutsem
Posted on • Originally published atelian.codes on
Set your NodeJS version in Netlify
A couple of times I needed to fix theNodeJS version on aNetlify site, I found myself googling it a couple of times, so this little how-to is basically a note-to-self.
The solution to setting a fixed NodeJS version is actually quite easy:
- go to your desired website
- go to Site Settings
- underBuild & deploy
- scroll down toEnvironment
- add a new environment variable named
NODE_VERSION
- set it to your desired version (major or minor)
When you set it to16
, it will automatically use the latest16.xx.xx
.
More information over on theNetlify documentation
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse