Agent skill
nvm-global-packages
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.
Install this agent skill to your Project
npx add-skill https://github.com/partme-ai/full-stack-skills/tree/main/skills/nvm-skills/nvm-global-packages
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:
bash# 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:
bash# 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:
bashnpm list -g --depth=0
Warning: Global packages are version-specific. Switching versions without --reinstall-packages-from means previously installed globals will not be available.
Example file map
examples/migrate-global-packages.md- Migration between versionsexamples/default-global-packages.md- Default packages file setup
Keywords
global packages, default-packages, reinstall-packages-from, npm global, consistency
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
ocrmypdf-batch
OCRmyPDF batch processing skill — process multiple PDFs, Docker automation, shell scripting, and CI/CD integration. Use when the user needs to OCR many PDFs, set up automated OCR pipelines, or integrate OCR into workflows.
ocrmypdf-optimize
OCRmyPDF optimization skill — compress PDFs, configure PDF/A output, JBIG2 encoding, and lossless optimization. Use when the user needs to reduce PDF file size, create archival PDF/A files, or optimize OCR output.
ocrmypdf-image
OCRmyPDF image processing skill — deskew, rotate, clean, despeckle, remove border from scanned documents. Use when the user needs to improve scanned PDF quality, fix skewed pages, remove noise, or clean up scanned documents before OCR.
ocrmypdf-api
OCRmyPDF Python API and plugin skill — use OCRmyPDF programmatically from Python, integrate with applications, and extend with plugins (EasyOCR, PaddleOCR, AppleOCR). Use when the user needs to call OCRmyPDF from Python code, build OCR pipelines, or use alternative OCR engines.
ocrmypdf
OCRmyPDF core skill — add searchable OCR text layer to scanned PDFs, convert images to searchable PDFs, support 100+ languages via Tesseract. Use when the user needs to OCR a PDF, make a scanned PDF searchable, or extract text from scanned documents.
svelte
Guides Svelte and SvelteKit development including reactive components, stores, transitions, lifecycle hooks, SSR, file-based routing, and deployment. Use when the user needs to build Svelte components, create SvelteKit applications, implement reactivity patterns, or configure Svelte with Vite.
Didn't find tool you were looking for?