0

Can I install NPM and YARN alternately?

If I need package a and package b, can I install package a with NPM and package b with YARN?

npm install a
yarn add b
leonheess
  • 16,068
  • 14
  • 77
  • 112
ddon
  • 185
  • 3
  • 4
  • 15

1 Answers1

0

Yarn is fine alone, and I don't see personnally why you need use both for a project. But yes, you can install both in the same project.

In case you would like to see the advantages of Yarn over Npm, I'll slip you this little link: https://www.sitepoint.com/yarn-vs-npm/

Olyno
  • 71
  • 2
  • 4
  • There is no special reason. However, I have only used NPM, so I accidentally installed some packages with NPM, so I was worried about a crash. Thank you for answer. – ddon Dec 16 '19 at 06:07