yarn: make the install example more explicit

Also format code in other examples with backticks
italian
Waldir Pimenta 2018-11-27 17:33:36 +00:00 committed by Agniva De Sarker
parent c6850f8e37
commit 9ebd2486ef
1 changed files with 5 additions and 5 deletions

View File

@ -6,19 +6,19 @@
`yarn global add {{module_name}}` `yarn global add {{module_name}}`
- Install all dependencies referenced in the package.json file: - Install all dependencies referenced in the `package.json` file (the `install` is optional):
`yarn` `yarn install`
- Install a module and save it as a dependency to the package.json file (add --dev to save as a dev dependency): - Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency):
`yarn add {{module_name}}@{{version}}` `yarn add {{module_name}}@{{version}}`
- Uninstall a module and remove it from the package.json file: - Uninstall a module and remove it from the `package.json` file:
`yarn remove {{module_name}}` `yarn remove {{module_name}}`
- Interactively create a package.json file: - Interactively create a `package.json` file:
`yarn init` `yarn init`