About npm
A brief npm usage skill for situations where package installation runs in a non-interactive shell and confirmation is difficult. It suggests piping output from the Unix `yes` command to supply confirmations.
Key features
- 01Guidance for non-interactive npm installs
- 02Use of Unix `yes` to provide confirmations
Use cases
- 01Confirming prompts during npm package installation
- 02Installing packages when interactive input is unavailable
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ openhands/ extensions --skill npmAfter installing, type/npmin Claude Code to confirm it loaded.
Bundled files.plugin/plugin.jsonREADME.md
Details
From the project READMEWhen using npm to install packages, you will not be able to use an interactive shell, and it may be hard to confirm your actions. As an alternative, you can pipe in the output of the unix "yes" command to confirm your actions.
Comments
Markdown supported