Pin your dependency version

Last modified: September 12th, 2024

Node.js#

The following Node.js versions are installed:

  • 14.21.3
  • 16.20.2
  • 18.20.3
  • 20.16.0

Each Node.js version has the following packages preinstalled globally:

Specifying your version#

To specify the Node.js version used on your site:

  1. Navigate to the Build configuration page under Site Settings.
  2. Under Library versions, set Node version to the desired version from the list.
  3. Click the Update Site button.

If you have your version already specified in a .nvmrc file in your repository, you can select the Use my .nvmrc file option in the Node version selector.

Using alternative package managers#

CloudCannon has npm, pnpm, and yarn pre-installed. Other package managers are not installed by default.

You can use /.cloudcannon/preinstall to add other package managers prior to your build/install commands. For more information, please read our documentation on build hooks.

Go#

The following Go versions are installed:

  • 1.21.6

Hugo#

The preinstalled Hugo version available in the build environment is 0.128.1 (extended).

CloudCannon always installs the extended version of Hugo.

The build environment also supports the Hugo Dart Sass transpiler with Embedded Dart Sass preinstalled. The current supported version of Embedded Dart Sass is 1.49.9

Specifying your version#

To specify the Hugo version used on your site:

  1. Navigate to the Build configuration page under Site Settings.
  2. Under Library versions, set Hugo version to the desired version.
  3. Click the Update Site button.

Ruby#

The following Ruby versions are installed:

  • 2.6.7
  • 2.7.3
  • 3.0.1
  • 3.1.3
  • 3.2.0

Specifying your version#

To specify the Ruby version used on your site:

  1. Navigate to the Build configuration page under Site Settings.
  2. Under Library versions, set Ruby version to the desired version from the list.
  3. Click the Update Site button.

If you have your version already specified in a .ruby-version file in your repository, you can select the Use my .ruby-version file option in the Ruby version selector.

Python#

The following Python versions are installed:

  • 2.7.18
  • 3.10.12

The following pip versions are installed:

  • 22.0.2

The following pipenv versions are installed:

  • 2024.0.1

Deno#

The following Deno versions are installed:

  • 1.44.4
  • 1.45.5

Specifying your version#

To specify the Deno version used on your site:

  1. Navigate to the Build configuration page under Site Settings.
  2. Under Library versions, set Deno version to the desired version from the list.
  3. Click the Update Site button.

If you have your version already specified in a .dvmrc file in your repository, you can select the Use my .dvmrc file option in the Deno version selector.

Open in a new tab