installing-npm-packages

Install npm, yarn, pnpm, or bun packages at the correct version.

8|Updated Dec 22, 2016
One-click install
npx skills add https://github.com/p-chan/dotfiles --skill installing-npm-packages
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: installing-npm-packages
Source: https://github.com/p-chan/dotfiles/tree/main/shared/agents/skills/installing-npm-packages
Command: npx skills add https://github.com/p-chan/dotfiles --skill installing-npm-packages

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill installs npm, yarn, pnpm, or bun packages at the correct version by detecting the project’s package manager and using the appropriate command.

Core Features & Use Cases

  • Manager detection: Reads package.json and lockfiles to identify package manager.
  • Version-safe install: Retrieves latest version or a specific version of a package.
  • Use Case: Add a dependency to a project using the correct command for npm, yarn, pnpm, or bun.

Quick Start

Install a package named express at the latest version using the detected manager (e.g., npm install express or bun add express).