Categories
NodeJS

Essential Node.js, npm, and nvm Commands Reference

Node.js Commands

Basic

# Run a JavaScript file
node app.js

# Start the REPL (interactive shell)
node

# Check Node.js version
node -v

# Run with debugging
node --inspect app.js

# Run with V8 inspector for Chrome DevTools
node --inspect-brk app.js