Last active
August 27, 2019 11:18
-
-
Save silversonicaxel/2b2fc714ec5d04327a8df8206d34ea3f to your computer and use it in GitHub Desktop.
YARN #yarn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// upgrade yarn version | |
brew upgrade yarn | |
// create a package.json file asking for | |
// - name (node) | |
// - version (1.0.0) | |
// - description () | |
// - author () | |
yarn init | |
// version of yarn installed | |
yarn --version | |
// look for package.json and install modules | |
yarn install | |
//install module and save it to the package.json dependencies | |
yarn add <module> | |
//install module globally | |
yarn global add <module> | |
//install module and save it to the package.json devDependencies | |
yarn add <module> --dev | |
yarn add <module> -D | |
//remove module from dependencies | |
yarn remove <module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment