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.
-
Install nvm by running the following command:Bash1curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
-
Verify that you have successfully installed nvm by running the following command:Bash1command -v nvm
-
Once you have successfully installed nvm, install Node.js by running one of the following commands:Bash1nvm install 162# or3nvm install 18
-
Instruct nvm to use the version of Node.js installed in the previous step by running the following command:Bash1nvm use 162# or3nvm 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:
-
Update the global Edgio CLI:Bash1npm i -g @edgio/cli^7.4.0
-
Update the Edgio dependencies in your project:Bash1edgio use ^7.4.0
-
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.