mirror of
https://github.com/onkelbeh/cheatsheets.git
synced 2025-06-16 07:07:37 +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
|
title: Yarn
|
||||||
category: JavaScript libraries
|
category: JavaScript libraries
|
||||||
|
layout: 2017/sheet
|
||||||
|
weight: -3
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### npm equivalents
|
||||||
|
|
||||||
| npm | yarn |
|
| npm | yarn |
|
||||||
| --- | ---- |
|
| --- | ---- |
|
||||||
| `npm install` | `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 gulp --save-dev --save-exact` | `yarn add gulp --dev --exact` |
|
||||||
| `npm install -g gulp` | `yarn global add gulp` |
|
| `npm install -g gulp` | `yarn global add gulp` |
|
||||||
| `./node_modules/.bin/gulp` | `yarn run gulp` |
|
| `./node_modules/.bin/gulp` | `yarn run gulp` |
|
||||||
|
{: .-left-align.-headers}
|
||||||
|
|
||||||
## yarn add
|
### yarn add
|
||||||
|
|
||||||
```
|
```
|
||||||
--dev
|
--dev
|
||||||
@ -20,3 +25,5 @@ category: JavaScript libraries
|
|||||||
--exact
|
--exact
|
||||||
--tilde
|
--tilde
|
||||||
```
|
```
|
||||||
|
|
||||||
|
These options are available for `yarn add`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user