yarn is a package manager like npm.
Installation
Install yarn to system.
$ npm i -g yarn
Lock the yarn version used by the project.
$ yarn set version <version>
Usage
Show help
$ yarn help
Show current version
$ yarn --version
Update to the latest version
$ yarn set version latest
Create a new project configuration
$ yarn init
$ yarn init -y
Add a package
$ yarn add <packages>
$ yarn add <packages> --dev (-D)
$ yarn add <packages> --peer (-P)
$ yarn add <packages> --optional (-O)
Upgrade dependencies
$ yarn up <packages>
Remove dependencies
$ yarn remove <packages>
'Web > Etc' 카테고리의 다른 글
[Babel] Getting Started (0) | 2020.09.10 |
---|---|
[Pug] Getting Started (0) | 2020.09.09 |
[Node] NPM (Node Package Manager) (0) | 2020.08.30 |
[Node] Node.js (0) | 2020.08.30 |
[Node] NVM (Node Version Manager) (0) | 2020.08.30 |
댓글