If the project has yarn.lock, change npm install to yarn.
$ 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.
Add this to ~/.bashrc or ~/.zshrc:
alias npm=prioritize-yarn
Thanks goes to these wonderful people (emoji key):
akameco 💻 📖 🚇 | Miguel Madero 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT © akameco