Introducing Edgio Applications v7Find out what's new.

Install Node.js and npm

Edgio Applications supports Node.js 16 and 18 runtime versions.
Although you may develop your app with any version of Node.js, it will run using a supported version of the Node.js runtime when deployed to Edgio.
  • Edgio v7.4.0 or later is compatible with Node.js 16 and 18.
  • Edgio v7.3.1 or earlier is compatible with Node.js 16 only.

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:
    1curl -o- | bash
  2. Verify that you have successfully installed nvm by running the following command:
    1command -v nvm
  3. Once you have successfully installed nvm, install Node.js by running one of the following commands:
    1nvm install 16
    2# or
    3nvm install 18
  4. Instruct nvm to use the version of Node.js installed in the previous step by running the following command:
    1nvm use 16
    2# or
    3nvm use 18

Package managers

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

Node.js 18 Support

Node.js 18 is now supported by Edgio Applications starting from version 7.4.0. 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.
To upgrade your project to use Edgio v7.4.0 or later, perform the following steps:
  1. Update the global Edgio CLI:
    1npm i -g @edgio/cli^7.4.0
  2. Update the Edgio dependencies in your project:
    1edgio use ^7.4.0
  3. Build your project and ensure that it works as expected.
If you’re using an earlier version of Edgio that doesn’t support Node.js 18, your application will use Node.js 16 runtime when deployed to Edgio.