Merge pull request #2780 from kialam/update-readme-install-exact

Update README to include saving exact dependencies using npm.

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot]
2018-11-21 19:12:50 +00:00
committed by GitHub

View File

@@ -67,6 +67,14 @@ npm install --prefix awx/ui --save prod-package@1.23
git add awx/ui/package.json awx/ui/package-lock.json
```
## Adding exact dependencies
```shell
# add an exact development or build dependency
npm install --prefix awx/ui --save-dev --save-exact dev-package@1.2.3
# add an exact production dependency
npm install --prefix awx/ui --save --save-exact prod-package@1.23
```
## Removing dependencies
```shell
# remove a development or build dependency