install-package
Adds npm packages to a React project via CLI, specifying package name, directory, and dependency type. Simplifies dependency management for React app development.
Instructions
Install a npm package in a project
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dev | No | Whether to install as a dev dependency | |
directory | No | Directory of the project (defaults to current directory) | |
packageName | Yes | Name of the package to install (can include version) |
Input Schema (JSON Schema)
{
"properties": {
"dev": {
"description": "Whether to install as a dev dependency",
"type": "boolean"
},
"directory": {
"description": "Directory of the project (defaults to current directory)",
"type": "string"
},
"packageName": {
"description": "Name of the package to install (can include version)",
"type": "string"
}
},
"required": [
"packageName"
],
"type": "object"
}