npm install package --workspace=packages/ui

Category: Node.js & npm/yarn

npm install package --workspace=packages/ui

Install a dependency into a specific workspace package rather than the root

Adds a dependency to one specific workspace package rather than the monorepo root. The package appears in that workspace's package.json.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.