Installs workspace dependencies
$bit install [packages...]
$bit in [packages...]
Additional Notes
when no package is specified, all workspace dependencies are installed and all workspace components are imported.
Arguments
Argument | Description | Required |
---|---|---|
packages... | a list of packages to install (separated by spaces) |
Options
Option | Option Alias | Description | Value Type |
---|---|---|---|
--type | -t | "runtime" (default) or "peer" (dev is not a valid option) | string |
--update | -u | update all dependencies to latest version according to their semver range | boolean |
--update-existing | - | DEPRECATED (not needed anymore, it is the default now). update existing dependencies version and types | boolean |
--save-prefix | - | set the prefix to use when adding dependency to workspace.jsonc | string |
--skip-dedupe | - | do not dedupe dependencies on installation | boolean |
--skip-import | - | do not import bit objects post installation | boolean |
--skip-compile | - | do not compile components | boolean |
--skip-write-config-files | - | do not write config files (such as eslint, tsconfig, prettier, etc...) | boolean |
--add-missing-deps | -a | install all missing dependencies | boolean |
--add-missing-peers | - | install all missing peer dependencies | boolean |
--recurring-install | - | automatically run install again if there are non loaded old envs in your workspace | boolean |
--no-optional | - | do not install optional dependencies (works with pnpm only) | string |
--lockfile-only | - | dependencies are not written to node_modules. Only the lockfile is updated | boolean |