environment-setup-node
Installation
SKILL.md
environment-setup-node
Goal
Prepares a stable Node.js and npm environment by validating the active Node runtime, confirming npm availability, and checking basic npm connectivity and health diagnostics.
Decision Logic
- If
nodeis missing or major version is< 20: install/upgrade Node.js to active LTS. - If a maintained Node version manager exists (
nvm,fnm,asdf): use it as the primary way to install/switch Node versions. - If no Node version manager is available on Windows: install
fnmwithwingetand continue non-interactively. - If Windows shell cannot find
nodeafterfnmsetup: configure PowerShell profile to initializefnm, then open a new terminal (or reload profile). - If
npmis unavailable: repair npm environment before continuing. - If
npm pingfails: resolve registry/network configuration before continuing.