The Node.js and NPM Installer solution enables the integration of Node.js, a cross-platform JavaScript runtime, into any certified container on the Virtuozzo Application Platform (VAP). Node.js installation provides access to the npm package ecosystem, one of the world's largest collections of open-source libraries. The add-on supports complex CI/CD workflows. For example, Node.js and NPM may be necessary for tasks involving static content or for building and running certain WordPress or web application modules.
Installation is possible on any certified container (except Node.js containers, where these tools are built-in) and allows selection of the preferred software version from the Node.js stacks available on the platform.
To install Node.js and the NPM package manager for your VAP containers, you must be registered on one of the Virtuozzo Public Cloud Providers.
1. Log in to your Virtuozzo Application Platform dashboard. Then hover over the required container and click the Add-Ons icon.
Alternatively, you can deploy this solution from the Marketplace or import a manifest file from this repository.
2. In the opened installation window, specify the following details:
- Node.js Version – select preferred stack version from the drop-down list
- Environment – select target environment for the add-on installation (automatically selected if accessed from Add-Ons)
- Layer(s) - select environment layers to install the add-on (you can choose multiple ones)
Note: The list of available Node.js versions is automatically updated based on the latest versions supported by the Virtuozzo Application Platform. The 16.20.2 version is kept to support legacy containers (based on the CentOS 7 OS template) and cannot be installed on modern containers (based on the AlmaLinux 9 OS template).
3. Click Install to proceed and wait a minute for the solution to be deployed.
4. To check if Node.js and NPM are available for your containers, you can connect via SSH (e.g., using Web SSH) and run the npm version
command:
Once installed, the Node.js and NPM Installer add-on can be found under the appropriate node’s Add-Ons section. Here, you can Change Node.js Version and Uninstall the add-on.
When changing the version, just pick a new one from the list, click Apply, and confirm the action via pop-up.
Once the add-on is reinstalled, you can check the new Node.js and NPM versions.