mirror of
https://github.com/onkelbeh/cheatsheets.git
synced 2025-06-15 14:47:53 +02:00
yarn: update
This commit is contained in:
parent
108cb2cc41
commit
ef3ac2be70
9
yarn.md
9
yarn.md
@ -1,8 +1,12 @@
|
||||
---
|
||||
title: Yarn
|
||||
category: JavaScript libraries
|
||||
layout: 2017/sheet
|
||||
weight: -3
|
||||
---
|
||||
|
||||
### npm equivalents
|
||||
|
||||
| npm | yarn |
|
||||
| --- | ---- |
|
||||
| `npm install` | `yarn` |
|
||||
@ -10,8 +14,9 @@ category: JavaScript libraries
|
||||
| `npm install gulp --save-dev --save-exact` | `yarn add gulp --dev --exact` |
|
||||
| `npm install -g gulp` | `yarn global add gulp` |
|
||||
| `./node_modules/.bin/gulp` | `yarn run gulp` |
|
||||
{: .-left-align.-headers}
|
||||
|
||||
## yarn add
|
||||
### yarn add
|
||||
|
||||
```
|
||||
--dev
|
||||
@ -20,3 +25,5 @@ category: JavaScript libraries
|
||||
--exact
|
||||
--tilde
|
||||
```
|
||||
|
||||
These options are available for `yarn add`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user