npm-helper
npm-helper simplifies package installation and dependency management for your development workflow. Quickly resolve version conflicts, update packages, and maintain clean project dependencies without manual configuration hassles.
npm-helper guides you through package installation by running `npm install <package-name>` to add dependencies to your project. The skill explains how to install packages locally (saved to node_modules and package.json), globally with the `-g` flag for CLI tools, and how to specify exact versions or version ranges. npm-helper also covers installing from package.json with `npm install` and managing both production and development dependencies using `--save` and `--save-dev` flags.
AI-generated summary based on this skill's SKILL.md
Install
CuriousLearner/devkit/npm-helper · repository language: Shell
git clone https://github.com/CuriousLearner/devkit
cp -r devkit/skills/npm-helper ~/.claude/skills/npm-helperFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I install npm packages?
npm-helper guides you through package installation by running `npm install <package-name>` to add dependencies to your project. The skill explains how to install packages locally (saved to node_modules and package.json), globally with the `-g` flag for CLI tools, and how to specify exact versions or version ranges. npm-helper also covers installing from package.json with `npm install` and managing both production and development dependencies using `--save` and `--save-dev` flags.
What should I know about fix npm dependency conflicts?
npm-helper helps resolve dependency conflicts by explaining how npm resolves version mismatches and when conflicts occur. The skill covers using `npm ls` to visualize your dependency tree, understanding peer dependency warnings, and strategies like updating packages, using compatible version ranges, or removing conflicting transitive dependencies. npm-helper also explains how lock files (package-lock.json) prevent conflicts across team members and environments.
How does npm-helper help with node.js project setup?
npm-helper simplifies Node.js project initialization by walking you through `npm init` to create a package.json file with your project metadata. The skill guides configuration of essential fields like name, version, description, entry point, and scripts. npm-helper also covers setting up TypeScript projects, configuring build and test scripts, and establishing best practices for organizing your project structure from the start.
Can npm-helper help me audit security vulnerabilities?
npm-helper explains how to use `npm audit` to scan your dependencies for known security vulnerabilities and receive a detailed report with severity levels. The skill guides you through reviewing audit results, understanding which packages need updates, and running `npm audit fix` to automatically patch vulnerable dependencies. npm-helper also covers strategies for updating dependencies safely while maintaining compatibility and testing changes thoroughly.
How do I compare npm, yarn, and pnpm with npm-helper?
npm-helper provides a comparison of npm, yarn, and pnpm package managers, highlighting differences in installation speed, disk space usage, lock file formats, and workspace support. The skill explains migration paths between managers, such as converting package-lock.json to yarn.lock or pnpm-lock.yaml, and discusses when each tool excels—npm for simplicity, yarn for performance and workspaces, and pnpm for disk efficiency and strict dependency isolation.
What does npm-helper teach about package.json configuration best practices?
npm-helper covers essential package.json fields including name, version, description, main entry point, scripts, dependencies, and devDependencies. The skill explains semantic versioning (semver) for specifying version ranges, organizing scripts for common tasks like build and test, and using engines to specify Node.js compatibility. npm-helper also guides managing peer dependencies, setting repository and license information, and keeping your configuration clean and maintainable.
SKILL.md
rendered from the published skill — quoted content, verbatim
NPM Package Management Assistant Skill
NPM and Node.js package management, project configuration, and dependency troubleshooting.
Instructions
You are a Node.js and NPM ecosystem expert. When invoked:
- Package Management:
- Install and manage npm packages
- Handle package.json configuration
- Manage lock files (package-lock.json)
- Use npm, yarn, or pnpm effectively
-
Configure workspaces and monorepos
-
Project Setup:
- Initialize new Node.js projects
- Configure scripts and lifecycle hooks
- Set up project structure
- Configure development tools
-
Manage multiple package managers
-
Dependency Management:
- Handle version ranges and semver
- Resolve dependency conflicts
- Audit for security vulnerabilities
- Update dependencies safely
-
Manage peer dependencies
-
Troubleshooting:
- Fix module resolution errors
- Resolve version conflicts
- Debug installation issues
- Clear cache and rebuild
-
Handle platform-specific issues
-
Best Practices: Provide
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
skills/npm-helper/SKILL.md