Node.js
Node.js record
1. Development Environment
Install
# ubuntu
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt install -y nodejs
# macOS
brew install node
# Verify
node -v
npm -vnvm
Install
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
# Add to shell profile (auto-added by installer)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# Verify
nvm --versionNode Version Management
fnm
Install
Node Version Management
2. ProjectManage
npm
Project Management
Configuration
Bun
Install
Project Management
pnpm
Install
Project Management
Last updated