← Tüm kılavuzlar
Node.js development environment on Windows
Install Node.js via a version manager (nvm-windows) rather than a single fixed installer -- lets you switch Node versions per project, matching what most real-world Node projects expect.
Bu kılavuz, yukarıda bağlantısı verilen Node.js development environment on Windows kendi resmi belgelerinden derlenmiştir — dağıtım ve proje sürümleri zamanla değiştiğinden, bu komutları bir üretim sunucusunda çalıştırmadan önce tam paket/sürüm adlarını her zaman orada kontrol edin.
1Install nvm-windows
winget install --id CoreyButler.NVMforWindows -eThis is a separate, Windows-specific project from the original Unix nvm -- Node's own official nvm doesn't support Windows directly.
2Install a Node version
Open a new terminal (so PATH changes apply), then install and switch to an LTS release.
nvm install ltsnvm use lts3Verify it
node --versionnpm --version4Switch versions per project as needed
Handy when one project needs an older Node version than another -- no need to uninstall/reinstall.
nvm listnvm use 18.20.4