nvm-global-packages
Installation
SKILL.md
nvm Global Packages
Manage global npm packages across Node version switches to avoid losing tools like eslint, typescript, or pm2.
Workflow
- 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