UNPKG

582 BPlain TextView Raw
1Packages can have a variety of dependencies specified in the {bold}package.json{/bold} file.
2
3The 4 types of dependencies you can specify are {bold}dependencies, devDependencies, peerDependencies & optionalDependencies{/bold}.
4
5The most basic are plain dependencies, which are installed each time the package is installed.
6
7You can install a dependency and stamp it to your {bold}package.json{/bold} with {bold}`npm install --save <package-name>`{/bold}.
8
9Tip: you can {bold}`npm rm --save <package-name>`{/bold} to remove a package from your project and {bold}package.json{/bold}.