Skip to content

Instantly share code, notes, and snippets.

@tshabatyn
Last active April 25, 2024 14:32
Show Gist options
  • Save tshabatyn/cc931788345179f283d1e710df7bb839 to your computer and use it in GitHub Desktop.
Save tshabatyn/cc931788345179f283d1e710df7bb839 to your computer and use it in GitHub Desktop.
Install node yarn and pm2 version 14.21.3 for gitlab
# Run bash as gitlab user
sudo -E -H -u gitlab-runner -- bash

# Install NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

# List node versions
nvm list-remote

# Install node
nvm install v14.21.3

# list all installed localy versions of node
nvm list

# Change version for node
nvm use 14.21.3
nvm alias default 14.21.3

# Install yarn and pm2 globally
npm install --global yarn
npm install --global pm2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment