Watch: How to install Node.js and npm on Mac with nvm | Vovy

Watch Vovy do it on a Mac: "Install Node and npm so I can run npm install on my Lovable project". Vovy installs nvm, then the current Node.js LTS with npm, so npm install and npm run dev work and you can switch versions later without breaking anything.

"Install Node and npm so I can run npm install on my Lovable project"

Vovy installs nvm, then the current Node.js LTS with npm, so npm install and npm run dev work and you can switch versions later without breaking anything.

What happens in the video

  1. Look for an existing Node install: Vovy checks for Node from the website installer or Homebrew, since two copies fighting each other is the top cause of weird npm errors.
  2. Install nvm: Vovy installs nvm, Node Version Manager, a small tool that lets you keep several Node versions and pick one per project.
  3. Install the LTS version of Node: Vovy runs nvm install --lts. LTS means long-term support: the stable version most hosting platforms and templates expect.
  4. Set it as your default: Vovy sets that version as the default so every new Terminal window uses it, then confirms node -v and npm -v both print a version.
  5. Test it on your project: If you have a project folder, Vovy runs npm install there and shows a card with your Node and npm versions and what just got installed.
Read the step-by-step guide