tooling

Node.js Environment Setup (2026 Edition)

2026-02-02 tooling 1 min read

In 2026, we don't just 'install Node.' We install a Manager. Manual installers are the hard way; version managers and binary executors are the senior dev standard.

1. Choose Your Manager: FNM vs. NVM

While NVM is the classic choice, FNM (Fast Node Manager) is the 2026 standard. Built in Rust, it offers instant shell startup and automatic version switching when you change directories.

powershell
# Using Winget (Windows)
winget install Schniz.fnm

# See all versions
fnm list

# Install and use LTS
fnm install 24
fnm use 24

2. Stop Global Installs: Use npm exec

Avoid npm install -g. It leads to version drift and system pollution. Instead, use npx (or npm exec) to run package binaries directly.

Firebase CLI Example

bash
# Initialize project
npx firebase init

# Serve locally with emulators
npx firebase emulators:start

# Deploy specific targets
npx firebase deploy --only hosting

One-Liner Utilities

NPX is perfect for tools you only need for a few seconds, like clearing stuck ports.

bash
# Kill ports 3000 and 8080 without a global install
npx kill-port 3000 8080

3. NPM Masterclass

Don't start from scratch. Use modern templates and update tools to keep your 2026 projects fresh.

bash
# Scaffolding with Vite
npm init vite@latest my-project

# Update dependencies safely
npx npm-check-updates -u
npm install

Summary Table

Action2026 Standard
Node VersionNode 24 (LTS)
ManagerFNM (Fast Node Manager)
Executionnpm exec / npx
Updatesnpm-check-updates