mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-20 16:27:49 +03:00
yarn: make the install example more explicit
Also format code in other examples with backticks
This commit is contained in:
parent
c6850f8e37
commit
9ebd2486ef
@ -6,19 +6,19 @@
|
||||
|
||||
`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}}`
|
||||
|
||||
- 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}}`
|
||||
|
||||
- Interactively create a package.json file:
|
||||
- Interactively create a `package.json` file:
|
||||
|
||||
`yarn init`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user