skills/nvm-skills/nvm-defaults-and-nvmrc/SKILL.md
Set default Node versions via nvm aliases, create .nvmrc files for project-specific versions, and configure shell auto-switching per directory. Use when the user asks about nvm alias default, .nvmrc configuration, auto-switching Node versions on directory change, or pinning a Node version for a project.
npx skillsauth add teachingai/agent-skills nvm-defaults-and-nvmrcInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Configure default Node versions and project-level version pinning with nvm.
Set the default Node version using an alias:
nvm alias default 20
# Or use an LTS alias
nvm alias default lts/iron
Create or update .nvmrc in the project root:
# Pin to a specific version
echo "20.11.0" > .nvmrc
# Or use an LTS alias
echo "lts/iron" > .nvmrc
Enable shell auto-switching if requested (see auto-use examples per shell).
Verify the configuration works:
# Open a new shell, then:
nvm current # Should show the default version
cd /path/to/project
node -v # Should match .nvmrc version
Important: Keep .nvmrc consistent across team repos to avoid version drift. Basic install/use belongs to nvm-usage-basics.
examples/default-version.md - Setting default aliasesexamples/nvmrc.md - .nvmrc file creation and usageexamples/auto-use-bash.md - Auto-switching for bashexamples/auto-use-zsh.md - Auto-switching for zshexamples/auto-use-fish.md - Auto-switching for fishnvm alias, default version, .nvmrc, auto use, project version, defaults
development
Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.
tools
Provides comprehensive guidance for Flask framework including routing, templates, forms, database integration, extensions, and deployment. Use when the user asks about Flask, needs to create web applications, implement routes, or build Python web services.
development
Provides comprehensive guidance for FastAPI framework including routing, request validation, dependency injection, async operations, OpenAPI documentation, and database integration. Use when the user asks about FastAPI, needs to create REST APIs, or build high-performance Python web services.
development
Provides comprehensive guidance for Django framework including models, views, templates, forms, admin, REST framework, and deployment. Use when the user asks about Django, needs to create web applications, implement models and views, or build Django REST APIs.