Managing your node version with nvm

CloudCannon uses the LTS (v14.16.0) version of node by default. You can use nvm to select which node version to use with your build.

The following node versions are pre-installed:

  • 14.16.0 (LTS)
  • 15.12.0 (current)
  • 10.24.0
  • 12.21.0

Usage

Select and install which nvm version to use in your prebuild script:

_cloudcannon-prebuild.sh
nvm install 13.14.0
nvm use

.nvmrc

Add a .nvmrc to your site’s root directory to specify which node version to use. For example:

.nvmrc
v12.21.0

Then in your prebuild script:

_cloudcannon-prebuild.sh
nvm install
nvm use
Was this article helpful? or Suggest an improvement >