# prioritize-yarn [](https://travis-ci.org/akameco/prioritize-yarn) [](#contributors)
> If the project has yarn.lock, change npm install to yarn.
## CLI
```
$ npm install --global prioritize-yarn
```
```
$ alias npm='prioritize-yarn'
// Using yarn, when there is a `yarn.lock`.
$ npm install
yarn install v0.18.1
[1/4] ð Resolving packages...
[2/4] ð Fetching packages...
[3/4] ð Linking dependencies...
[4/4] ð Building fresh packages...
⨠Done in 2.25s.
```
## Recommend
Add this to ~/.bashrc or ~/.zshrc:
```
alias npm=prioritize-yarn
```
## Contributors
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore -->
<table><tr><td align="center"><a href="http://akameco.github.io" rel='nofollow' onclick='return false;'><img src="https://avatars2.githubusercontent.com/u/4002137?v=4" width="100px;" alt="akameco"/><br /><sub><b>akameco</b></sub></a><br /><a href="https://github.com/akameco/prioritize-yarn/commits?author=akameco" title="Code" rel='nofollow' onclick='return false;'>ð»</a> <a href="https://github.com/akameco/prioritize-yarn/commits?author=akameco" title="Documentation" rel='nofollow' onclick='return false;'>ð</a> <a href="#infra-akameco" title="Infrastructure (Hosting, Build-Tools, etc)" rel='nofollow' onclick='return false;'>ð</a></td><td align="center"><a href="http://www.miguelmadero.com" rel='nofollow' onclick='return false;'><img src="https://avatars2.githubusercontent.com/u/47388?v=4" width="100px;" alt="Miguel Madero"/><br /><sub><b>Miguel Madero</b></sub></a><br /><a href="https://github.com/akameco/prioritize-yarn/commits?author=MiguelMadero" title="Code" rel='nofollow' onclick='return false;'>ð»</a></td></tr></table>
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
## License
MIT © [akameco](http://akameco.github.io)