Edgio

Install Node.js and npm

The Node.js 16 end-of-life (EOL) is only relevant if your configuration uses Edgio Sites or Cloud Functions. This article is inapplicable for all other cases (e.g., if you only deploy from the Edgio Console).
Although you may develop your app with any version of Node.js, Edgio Applications runs your projects within a Node.js 16, 18, or 20 runtime environment. Edgio determines the available set of runtime environments according to the version of the Edgio CLI through which your project was deployed.
Node.js VersionRequires
20Edgio v7.5.0 or later
18Edgio v7.4.0 or later
16 (deprecated)Edgio v7.4.4 or earlier

End-of-Life for Node.js 16 Support

Edgio Applications’s support for Node.js version 16 is undergoing end-of-life. Starting from 7/15/2024, we will no longer support properties that use Node.js version 16. Specifically, you will be prohibited from deploying changes to those properties.
If you are currently using Node.js 16, then we strongly recommend that you perform the following steps prior to 7/15/2024:
  1. Upgrade your application to use Node.js 18 or 20.
  2. Upgrade the Edgio CLI and Edgio dependencies in your project to v7.4.0 or later. We strongly recommend upgrading it to the latest version.

Node.js Installation

The recommended method for installing Node.js is through a version manager like nvm.
  1. Install nvm by running the following command:
    Bash
    1curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
  2. Verify that you have successfully installed nvm by running the following command:
    Bash
    1command -v nvm
  3. Once you have successfully installed nvm, install Node.js by running one of the following commands:
    Bash
    1nvm install 18
    2# or
    3nvm install 20
  4. Instruct nvm to use the version of Node.js installed in the previous step by running the following command:
    Bash
    1nvm use 18
    2# or
    3nvm use 20

Package managers

npm is a package manager integrated into Node.
yarn is another very popular package manager.

Node.js 18 and 20 Support

Node.js 18 and 20 are supported by Edgio Applications starting from version 7.4.0 and 7.5.0, respectively. Edgio will detect your project’s Node.js version during deployment and use the appropriate runtime version. Optionally, you can set the cloudRuntime property in the edgio.config.js file to target a specific Node.js version.
Upgrade your project by running the commands corresponding to the desired Node.js version:
Bash
1# Update the global Edgio CLI to version 7.4.0
2npm i -g @edgio/cli~7.4.0
3
4# Update the Edgio dependencies in your project
5edgio use ~7.4.0
Build your project and ensure that it works as expected.