DEV Community

kafin
kafin

Posted on

NPM or Yarn ? im a junior dev following course on internet

im using npm but a course i follow are using yarn and i started using both randomly when installing modules or run script, some error pops, any tips for me?

Top comments (3)

Collapse
 
darksmile92 profile image
Robin Kretzschmar

When yarn was new, it was a lot fastern than npm and a lot of people switched to it because of this fact.
But today, npm is not that slow anymore and has improved a lot.
You can research for benchmarks to get a fundamental statement, but in my opinion it is more of a personal decision now.

Collapse
 
salimkafin profile image
kafin

wow, the course on udemy i follow are using yarn, i think i will go with npm and try to do the same result like on the course using npm, thanks robin :)

Collapse
 
darksmile92 profile image
Robin Kretzschmar

You're welcome kafin :)

Maybe you can turn this comparison into your next article (just as an idea), I can imagine that this would be interesting to a lot of people asking themselves the same question.