jeff-skill-install-nodejs
Installation
SKILL.md
- Check if
nvmis already installed by runningnvm --version.- If not installed, install it using the host's package manager (Homebrew for macOS, apt for Ubuntu, etc...).
- After installing, ensure
nvmis loaded in the current shell (restart the shell if not detected after install).
- Check the latest LTS version available:
- Run
nvm version-remote --ltsand note the version.
- Run
- Check the currently active Node.js version:
- Run
nvm current.
- Run
- If the versions do not match:
- Run
nvm install --ltsto install. - Run
nvm alias default lts/*to set it as the default for new shells. - Run
node --versionto verify it matches the LTS version from step 2.
- Run
Additional resources
- For complete API details, see reference.md
- For usage examples, see examples.md