Yarn: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{|
|-
| valign="top" |
<source lang="bash">
yarn install <git-host>:<git-user>/<repo-name>
yarn install <alias>@npm:<name>
yarn install <git repo url>
yarn install <tarball file>
yarn install <tarball url>
yarn install <folder>
</source>
| valign="top" |
<source lang="bash">
yarn install [<@scope>/]<name>@<version range>
yarn install [<@scope>/]<name>@<version>
yarn install [<@scope>/]<name>@<tag>
yarn install [<@scope>/]<name>
yarn install
</source>
|-
| valign="top" colspan="2"|
----
|-
| valign="top" colspan="2"|
aliases: yarn i, yarn add
common options: [-P|--save-prod|-D|--save-dev|-O|--save-optional|--save-peer] [-E|--save-exact] [-B|--save-bundle] [--no-save] [--dry-run]
|}
==Knowledge==
{|
|-
| valign="top" colspan="2"|
yarn config set key=value [key=value...]
yarn config delete key [key ...]
yarn config get [key ...]
yarn config list
yarn config edit
|-
| valign="top" colspan="2"|
----
|-
| valign="top" |
yarn install npm@latest -g
yarn list -g --depth 0
node -v
yarn -v
| valign="top" |
yarn cache clean -f && yarn install -g n && n stable
yarn install -g npm
yarn upgrade -g
yarn update -g
|}
==References==
==References==
{|
{|

Revision as of 22:49, 25 September 2021

yarn install <git-host>:<git-user>/<repo-name>
yarn install <alias>@npm:<name>
yarn install <git repo url>
yarn install <tarball file>
yarn install <tarball url>
yarn install <folder>
yarn install [<@scope>/]<name>@<version range>
yarn install [<@scope>/]<name>@<version>
yarn install [<@scope>/]<name>@<tag>
yarn install [<@scope>/]<name>

yarn install

aliases: yarn i, yarn add
common options: [-P|--save-prod|-D|--save-dev|-O|--save-optional|--save-peer] [-E|--save-exact] [-B|--save-bundle] [--no-save] [--dry-run]

Knowledge

yarn config set key=value [key=value...]
yarn config delete key [key ...]
yarn config get [key ...]
yarn config list
yarn config edit

yarn install npm@latest -g
yarn list -g --depth 0
node -v
yarn -v
yarn cache clean -f && yarn install -g n && n stable
yarn install -g npm
yarn upgrade -g
yarn update -g

References