package Dependency in Node.
Dependency are declared/added in package.json:
- with a package manager
- or manually
Type of dependency relationship
- What are Peer Dependencies? - A dependency that will be provided and is not needed in the bundle.
- optionalDependencies: build dependency failures do not cause installation to fail
Installation of all dependencies
It will get the dependency from the package.json file
Installation of all dependency of a cloned project.
- for dev
git clone url
Add a dependency to your project
To not include a dependency, you need to declare it as peerDependency