Why I Switched From NPM/Yarn to PNPM And Why You Should Too!

Why I Switched From NPM/Yarn to PNPM And Why You Should Too!

CoderOne

2 года назад

101,841 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

CoderOne
CoderOne - 05.05.2022 21:07

I would like to appreciate the help provided by the Creator of PNPM ​ @Zoltan Kochan

Ответить
Jasper Teng
Jasper Teng - 25.10.2023 08:55

can you do a comparison of it with yarn V2? I heard yarn V2 does not use node_modules? sorry. newbie here.

Ответить
Shapeless
Shapeless - 18.07.2023 18:03

I'm not interested in PNPM because of "fast downloads", but more because of preserving space on my laptop's SSD when I'm on the go (It's a MacBook, yes, I know... I know....)
Also, you can actually install PNPM with NPM itself nowdays.

Ответить
Nico D.
Nico D. - 11.06.2023 00:29

If you speak about yarn, do you speak about yarn 1 or yarn 3 and if yarn 3, have you tried the different modes? Has yarn 3 the same performance with the pnpm mode as pnpm itself?

Ответить
Jeremy
Jeremy - 07.03.2023 19:58

more overhead to save couple of seconds

Ответить
Unrealsolver
Unrealsolver - 14.02.2023 08:18

Interesting, but Yarn v2+ does not use node_modules at all

Ответить
Quốc Toàn Vũ
Quốc Toàn Vũ - 24.01.2023 13:26

but pnpm does not compatible with react-native :(

Ответить
Schio Alves
Schio Alves - 11.01.2023 23:35

Well, I tried using it on an ionic angular project and pnpm import reports success, without creating a node_modules folder or whatsoever

Ответить
Hanashi
Hanashi - 20.12.2022 00:43

I tried it:
npm install express: 2,804s
pnpm add express: 2,752s

It's not really faster.

Ответить
abc3315
abc3315 - 12.12.2022 12:14

So pnpm doesn’t have a flat node_modules directory but instead has an equivalent flat .pnpm directory? Just use the latest Yarn (it has different options which you need to research). There is no need for a complicated directory tree structure and symlinking when you can keep the dependency tree information in a file.

Ответить
Alessio Collura
Alessio Collura - 09.12.2022 20:56

I already knew pnpm, it sound great, but never used it because I kept asking if it's so great why isn't anyone using it? There's any compatibility problem or workaround necessary?

Ответить
JBerrios
JBerrios - 08.12.2022 23:19

Wow....I need to make the change.
Seems life changing ✨

Ответить
Kos M
Kos M - 08.11.2022 22:43

diversity in JS is good and bad thing at the same time... While offers a ton of libs to make our lives better , disorientate (new) devs with a lot package managers , we should move on , and make deprecated old package managers , proven not good in performance in core of their arch..

Ответить
Roland Lawrence
Roland Lawrence - 07.11.2022 05:53

neato. using pnpm. you've convinced me. also using vite this year. development has never been so fast...

Ответить
Rune Jørgensen
Rune Jørgensen - 06.11.2022 21:02

It would have been helpful to see how you solved the missing peers :(.

Ответить
Tanner Barcelos
Tanner Barcelos - 04.11.2022 00:08

Loving pnpm so far. Going to start learning more about it and specifically "Workspaces". I have had no use for Workspaces to this point, but I am about to take off on a new project that is a perfect use case for Workspaces and all of pnpm's features.

Ответить
marilyn yballa
marilyn yballa - 26.10.2022 14:38

Thank you! <3

Ответить
Salman Dabbakuti
Salman Dabbakuti - 21.10.2022 13:23

I wonder why comparing it with npm? under the hood they (yarn or pnpm or any other package managers) resolves packages from npm registry. isn't it?

Ответить
DespertaWeb !!
DespertaWeb !! - 18.08.2022 13:16

Mindblowing! Thanks for the visibility! I'll go with pnpm!

Ответить
Marcin Malinowski
Marcin Malinowski - 18.08.2022 13:08

1.8s think of it as 1 second. 10.44 nah its 11. problem? :D Nice video but you could be more objective.

Ответить