Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node v20 Upgrade #776

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Node v20 Upgrade #776

wants to merge 5 commits into from

Conversation

Onurcankaratay
Copy link
Member

@Onurcankaratay Onurcankaratay commented Oct 3, 2024

Trello: https://trello.com/c/LPfsXT67/332-nodejs-v20-upgrade-for-cgap

Upgrades

  • Dockerfile's node version (tested by running > make build-docker-local)
  • GH actions main.yml that is the default workflow for master and PRs. (also bumps actions/checkout and actions/python-setup (tested by running on Github actions manually

image

How to install/use Node 20 using NVM

To install Node.js 20 using nvm (Node Version Manager) on a Mac, follow these steps:

1. Install nvm (if you haven't already)

If you don't have nvm installed, you can do so by running the following command in your terminal:

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

After installation, add the following to your .zshrc or .bash_profile (depending on your shell):

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

Then, restart your terminal or run:

source ~/.zshrc # or ~/.bash_profile if using bash

2. Verify nvm installation

Run this command to ensure nvm is installed:

nvm --version

If the version appears, you are ready to install Node.js.

3. Install Node.js 20

Now, you can install Node.js version 20 with this command:

nvm install 20

4. Use Node.js 20

After installation, set Node.js 20 as the default version with:

nvm use 20

To make Node.js 20 the default version for every session, run:

nvm alias default 20

5. Verify Node.js 20 Installation

To verify that Node.js 20 is installed and being used, check the version with:

node --version

You should see output like v20.x.x.

@Onurcankaratay
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant