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 nvm is loaded in the current shell (restart the shell if not detected after install).
- Check the latest LTS version available:
- Run nvm version-remote --lts and note the version.
- Check the currently active Node.js version:
- Run nvm current.
- If the versions do not match:
- Run nvm install --lts to install. - Run nvm alias default lts/* to set it as the default for new shells. - Run node --version to verify it matches the LTS version from step 2.