NodeJS


Node.js is an open source server environment. It allows developers to create both front-end and back-end applications using JavaScript.
https://nodejs.org/en/

LTS: even-numbered releases (18, 28, etc.)

For example, I will install NodeJS 20!

Table of contents

  1. macOS
  2. Windows

🔲 → Optional
✅ → Required
🔘 → Pick One
ℹī¸ → Information


macOS


✅ Installation

brew install node@20

🔲 Validation

node --version
npm --version

ℹī¸ Location

/usr/local/lib/node_modules
/usr/local/lib/node_modules/npm/node_modules

Windows


✅ Installation

🔘 Chocolatey

choco install nodejs-lts

✅ Path Setting

setx /m PATH "%PATH%;C:\Program Files\nodejs" & refreshenv
setx /m PATH "%PATH%;C:\{USER}\AppData\Roaming\npm" & refreshenv

☑ Open Command Prompt with administrator privileges
☑ Replace {USER} by your current username

🔘 Setup Wizard

  1. Visit https://nodejs.org/en/download
  2. Click Windows Installer
  3. Open the node-v20.xx.x-xxx.msi in Downloads
  4. Do installation procedures of Setup Wizard

🔲 Validation

node --version
npm --version

ℹī¸ Location

C:\Program Files\nodejs
C:\Program Files\nodejs\node_modules\npm

NPM Packages

C:\{USER}\AppData\Roaming\npm