Javascript Package - Dependency
About
package Dependency in Node.
Dependency are declared/added in package.json:
Type of dependency relationship
-
Devdependencies - build and test dependency that are not needed in the dependency graph (bundler, test harnesses or transpilers)
Peerdependencies - A dependency that will be provided and is not needed in the bundle.
-
-
Management
Installation of all dependencies
It will get the dependency from the package.json file
Installation of all dependency of a cloned project.
git clone url
yarn install
# or
npm install
npm ci
Add a dependency to your project
See:
Exclude
To not include a dependency, you need to declare it as peerDependency