Pnpm vs Npm vs Yarn - What to Choose?

Поділитися
Вставка
  • Опубліковано 14 жов 2024
  • Learn what is Pnpm package manager and how Pnpm differs from Npm or Yarn. We will look on important Pnpm features and try to migrate Npm project to Pnpm to see how difficult it is. It's a Pnpm vs Npm vs Yarn comparison!
    ► CHECK MY COURSES - monsterlessons...
    FOLLOW ME
    ► TWITTER - / monster_lessons
    STUFF I USE
    ► My imac for home on Amazon - amzn.to/3MgtZAC
    ► Mac macbook to go on Amazon - amzn.to/3yr3UJg
    ► My monitors on Amazon - amzn.to/3yw6lKD
    ► My mouse on Amazon - amzn.to/3CEFCNt
    ► My keyboard on Amazon - amzn.to/3fOzNVL
    ► My monitor arm on Amazon - amzn.to/3CHr5BA
    ► My speakers on Amazon - amzn.to/3T4uf7W
    ► My coffee machine on Amazon - amzn.to/3rI9DGQ
    ► My Synology NAS on Amazon - amzn.to/3MjIpQz
    ► My Seagate IronWolf 4TB HDD on Amazon - amzn.to/3Cndm1B
    ► My external SSD drive on Amazon - amzn.to/3rFPQb1
    ► My external HDD drive on Amazon - amzn.to/3MmrsVE
    ► My microphone - amzn.to/3SMCE08
    ► Audio interface - amzn.to/3ecWv9O
    ► Camera - amzn.to/3RNOLIM
    Disclosures: All opinions are my own. Sponsors are acknowledged. Some links in the description are affiliate links that if you click on one of the product links, I’ll receive a commission at no additional cost to you. As an Amazon Associate I earn a small commission from qualifying purchases.

КОМЕНТАРІ • 17

  • @MonsterlessonsAcademy
    @MonsterlessonsAcademy  Місяць тому

    WATCH NEXT: Javascript Interview Questions and Answers - Dominate Your Next Interview - ua-cam.com/video/wnYKH2dO620/v-deo.htmlsi=5DfbGEfhXWiiv0a_

  • @sarath.sandwich
    @sarath.sandwich 20 днів тому +1

    Nice, quite neutral explanation. Thanks for sharing.

  • @sliceem88
    @sliceem88 Рік тому +2

    Tnx! Nice explanation !

  • @abc33155
    @abc33155 Рік тому

    0:57 In a flat structure you don’t copy dependencies “all the time”, that will be in a nested structure without soft&hard links. In a flat structure you should have only one copy of (a version of) each package.

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  Рік тому

      You are correct but when you have multiple versions of the same package across your dependencies it is not flat anymore as it can't just install the only version in root.

  • @TheBesogon
    @TheBesogon Рік тому +1

    I like Yarn PnP.. but. PnP is not ready for development of big projects yet, I suppose. The reason is that PnP is very strict.. + their override causes weird issues from time to time.. Mostly because their approach is very strict. I guess, that in reality, we have to take reality in account and not be so ideal and "righty".
    For small (pushable) projects: I'd use yarn PnP
    For big (enterprise) projects: I'd use pnpm
    For widely used open source projects: I'd still try to use npm
    I hope! that yarn and pnpm and npm will come to the same specification! Now it is a shame what we have in documentation/ configuration and all could use 1 thing to manage all packages as it was before

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  Рік тому +2

      I agree with you. But just to remind when we had just npm with shrinkwrap and no lock file by default and they didn't change anything until yarn came out. Competition really pushes them all forward.

  • @ChristopherMartinez-v8b
    @ChristopherMartinez-v8b 22 дні тому

    829 Green Village

  • @sL...
    @sL... Рік тому

    Pnpm unusable on windows. A lot of bugs. Tried version 8+
    Too long path on windows errors.
    Random errors on package updates.

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  Рік тому

      Sounds bad. Luckily I don't use windows. On macos I had zero problems with pnpm

  • @re.liable
    @re.liable Рік тому

    7:58 scared me. I thought my speakers broke

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  Рік тому

      Sorry I should've picked lighter sound :)

    • @re.liable
      @re.liable Рік тому

      @@MonsterlessonsAcademy No worries :) Just tried out pnpm and it seems to work great. When I finish my current NPM project maybe I'll try to do the next one in pnpm. Cheers

  • @sj9851
    @sj9851 Рік тому +2

    YARN not JARN....