What is the equivalent of "npm install --save" in Yarn?
The yarn equivalent tonpm install <name> --save
is:
yarn add <name>
Here's the link to the docs for the full list of commands in comparison to npm
.
Using --dev or -D will install one or more packages in your devDependencies.
yarn add <package...> [--dev/-D]
Yarn add documentation