3 category: JavaScript libraries
7 prism_languages: [json, bash]
15 | `npm init` | `yarn init` |
16 | `npm install` | `yarn` |
17 | `npm install gulp --save` | `yarn add gulp` |
18 | `npm install gulp --save-dev --save-exact` | `yarn add gulp --dev --exact` |
19 | `npm install -g gulp` | `yarn global add gulp` |
20 | `npm update` | `yarn upgrade` |
21 | `./node_modules/.bin/gulp` | `yarn run gulp` |
22 {: .-left-align.-headers}
37 --modules-folder <path>
38 --production[=true|false]
41 These options are available for `yarn install`.
53 These options are available for `yarn add`.
70 ├─ jest-matcher-utils/
77 (New in 1.0) Allows monorepos to share packages with each other. See: [Introducing workspaces](https://yarnpkg.com/blog/2017/08/02/introducing-workspaces/)
79 ### Selective version resolution
86 "**/sass-brunch/node-sass": "4.5.2"
90 (New in 1.0) Allows you to specify versions for sub-dependencies. See: [Selective version resolutions](https://github.com/yarnpkg/yarn/pull/4105)
95 yarn create react-app hello
98 Install `create-react-app` and runs it. See: [yarn create](https://github.com/yarnpkg/rfcs/blob/master/implemented/0000-yarn-create.md)