Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Install node with Ubuntu package manager

Source to install for Ubuntu only for one user: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04

If You are going to use autodeploy under other user (for example gitlab-runner user) each changes of the Marionette project settings (Marionette Stack) You should install Node JS available to all users of the VM operation system. Use apt to install the nodejs package from Ubuntu’s default software repository.

Here is installing Node JS available to all Users with Ubuntu package manager:

apt update

Then install Node.js:

apt install nodejs

Install the npm package manager:

apt install npm

Verify you’ve installed the required version:

node -v

Install node with Node Version Manager

Another way to install Node.js that is quite flexible is to use nvm, or Node Version Manager. This software allows you to install and maintain several different independent versions of Node.js and their associated Node packages.

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.38.0/install.sh | bash

Verify you’ve installed the required version

node -v

In both cases, you will receive, for example, a similar version response:

swappy-20240129_095748.png

  • No labels