Node.js Installation — 4/55 in the Node.js series. Full playlist companion: Node.js complete course on YouTube. Prefer one article? Read the complete Node.js tutorial.
Short description
Download the LTS build from nodejs.org (or use nvm). Installation includes npm, which manages packages for your projects.
Steps
- Install Node.js LTS from the official site or nvm.
- Open a terminal and verify
nodeandnpm. - Create a project folder and initialize npm.
Verify installation
node -v
npm -v
mkdir my-node-app && cd my-node-app
npm init -y