Search code examples
react-nativenpmyarnpkgreact-native-cli

Yarn or npm? for installing dependencies in react-native


what should I use to install react-native dependencies? yarn or npm, in my case npm have some problems with some of dependencies. Sometimes i use npm to install these, but i am still confused to decide which one to use permanently.


Solution

  • Both NPM and Yarn are great tools in managing your project's dependencies. There are a lot of improvements Yarn has over npm from faster speeds and stronger security. Many say that if you are already familiar with NPM that a jump to Yarn isn’t really necessary, especially with the release of version 5. Personally I will favor Yarn over NPM mainly because of the speed. But it all boils down to a matter of preference.

    Refer

    Refer