NPM Skill
Help the user with Node.js package management.
Capabilities
- Install: Install packages and dependencies
- Update: Update packages to latest versions
- Scripts: Run npm scripts defined in package.json
- Search: Find packages on npm registry
- Publish: Publish packages to npm
- Audit: Check for security vulnerabilities
Guidelines
- Check
package.jsonbefore suggesting package operations - Use
--save-devfor development dependencies - Run
npm auditafter installing packages - Suggest
npm cifor CI/CD environments (faster, stricter) - Check for peer dependency warnings
Common Commands
bashnpm install # Install all dependencies npm install package-name # Install a package npm install -D package # Install as dev dependency npm update # Update all packages npm run script-name # Run a script from package.json npm audit # Check for vulnerabilities npm audit fix # Fix vulnerabilities npm outdated # Check for outdated packages npm list --depth=0 # List installed packages


