skills/nvm-skills/nvm-global-packages/SKILL.md
Migrate npm global packages between Node versions using reinstall-packages-from, and define a default-packages file to auto-install globals on every new version. Use when the user asks about keeping global packages after switching Node versions, setting up default npm packages, or troubleshooting missing global packages after nvm install.
npx skillsauth add partme-ai/full-stack-skills nvm-global-packagesInstall 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.
Manage global npm packages across Node version switches to avoid losing tools like eslint, typescript, or pm2.
Migrate global packages when installing a new version:
# Install Node 20 and copy global packages from Node 18
nvm install 20 --reinstall-packages-from=18
# Verify packages migrated
npm list -g --depth=0
Configure default-packages for automatic installation on every new version:
# Create the default-packages file
cat > "$NVM_DIR/default-packages" << 'EOF'
typescript
eslint
pm2
nodemon
EOF
# New installs will auto-install these packages
nvm install 22 # typescript, eslint, pm2, nodemon installed automatically
Verify and validate global packages:
npm list -g --depth=0
Warning: Global packages are version-specific. Switching versions without --reinstall-packages-from means previously installed globals will not be available.
examples/migrate-global-packages.md - Migration between versionsexamples/default-global-packages.md - Default packages file setupglobal packages, default-packages, reinstall-packages-from, npm global, consistency
development
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
tools
Creates new uni-app projects via the official CLI or HBuilderX with Vue 2/Vue 3 template selection, manifest.json and pages.json configuration, and directory structure setup. Use when the user wants to scaffold a new uni-app project, initialize project files with a single command, or set up the development environment.
tools
Browses, installs, configures, and manages plugins from the uni-app plugin market (ext.dcloud.net.cn) including component plugins, API plugins, and template plugins with dependency handling. Use when the user needs to find and install uni-app plugins, configure plugin settings, manage plugin dependencies, or integrate third-party components.
tools
Develops native Android and iOS plugins for uni-app including module creation, JavaScript-to-native communication, and plugin packaging for distribution. Use when the user needs to build custom native modules, extend uni-app with native capabilities (camera, Bluetooth, sensors), or create publishable native plugins.