Skip to content

Installation

Aniket Sakinala edited this page Jul 18, 2023 · 1 revision

NodeJS Installation

On MacOs or Ubuntu machines, nodejs can be installed via npm.
npm can be installed via

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

You can then load nvm in your ~/.profile or ~/.bashrc file:

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" # This loads nvm

Verify nvm install:

nvm --version

Install node:

nvm install node # "node" is an alias for the latest version

Verify node install:

nvm use node

For Windows download and run the relevant MSI Installer from here.

Clone this wiki locally