#20: peerDependencies in package.json - Mastering NPM

#20: peerDependencies in package.json - Mastering NPM

Mehul - Codedamn

3 года назад

30,929 Просмотров

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


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

@ishraqsyed8999
@ishraqsyed8999 - 13.12.2023 20:55

Brilliant explanation! Clear and concise

Ответить
@aleksandrkravtsov8727
@aleksandrkravtsov8727 - 19.11.2023 03:19

What should I do to fix warning? Do I need to add `react` to `package.json` or install it with `npm install react`?

Ответить
@pulsewidth1917
@pulsewidth1917 - 12.08.2023 06:53

Great introduction to this concept. Subscribed.

Ответить
@yfzhangphonn
@yfzhangphonn - 13.02.2023 08:17

This is really helpful mate.

Ответить
@AHSharp
@AHSharp - 15.01.2023 14:20

Thanks a lot for this great series of npm videos. I learned much and things are more clear for me then before
Well done!!

Ответить
@moseslucas5933
@moseslucas5933 - 02.12.2022 08:47

Very easy to understand. Your example of react and react-dom is the best.

Ответить
@rodrigoherrera7392
@rodrigoherrera7392 - 11.11.2022 17:21

Great explanation

Ответить
@nikethreddy7113
@nikethreddy7113 - 13.10.2022 07:33

Thanks!

Ответить
@super-duper-wooper
@super-duper-wooper - 19.08.2022 10:29

putting you out that "he" ? react dom probably. what is "he" ? you said.

Ответить
@VladislavSnegurov
@VladislavSnegurov - 12.07.2022 23:18

Explanation in documentation is a trash. Thank you for making it clear. Excellent explanation!

Ответить
@AndrewRusinas
@AndrewRusinas - 27.06.2022 16:18

So much moves to make react-dom happy, but you just could happy-dom instead ( ͡° ͜ʖ ͡°)

Ответить
@stodani
@stodani - 18.05.2022 21:57

could you explain whats the package.JSON that i have to add that on? i don't know how to find that file, or which one of all the paskage.JSON of my computer should i add it on. I need to intall Angular, and it asks me to install some dependencies, but of course as i still not have Angular there is not Angular's package.JSON file yet

Ответить
@user-qs5dw9gw2t
@user-qs5dw9gw2t - 04.04.2022 13:15

The example you gave using react and react-dom was perfect to get it. Thanks!

Ответить
@chenni8759
@chenni8759 - 08.11.2021 12:56

Thank you very much for this great video!

Ответить
@marwentrabelsi2983
@marwentrabelsi2983 - 28.10.2021 17:43

you just covered only 1 side of the problem.

What happen if i do not want to expect that the host developer is installing this peer dependencies and instead i ship my library with dependencies instead? (so users of my library will not bother installing peer dependencies).

Ответить
@davidelsner9391
@davidelsner9391 - 19.10.2021 22:14

Good explanation!

Ответить
@codenamegrant
@codenamegrant - 14.10.2021 10:50

Thanks so much for this clear explanation and example. I totally understand the concept of peerDependencies now.
Saves "Master NPM" playlist to watch later :D

Ответить
@YoussefZidan
@YoussefZidan - 13.09.2021 15:03

Then if I'm creating that needs other dependencies how force NPM to install it?

Ответить
@arturmostowiak9427
@arturmostowiak9427 - 05.08.2021 12:59

This is good. The official explanation on npm site sucks

Ответить
@farhanaditya2647
@farhanaditya2647 - 24.07.2021 10:30

Ahh, so peer dependency is like the inverse of dependency.

For example:
if A requires B, it means:
B is the dependency of A
A is the peer dependency of B (well, not necessarily, but you get the idea).

Thanks for the simple explanation! Clearest explanation about peer dependency I've ever seen.

Ответить
@orangeprogrammer
@orangeprogrammer - 05.06.2021 06:23

Thank you. Wonderful video. Excellent explanation.

Ответить
@jojojawjaw
@jojojawjaw - 31.05.2021 11:22

Great explanation, thank you so much!

Ответить
@ehsankhorasani_
@ehsankhorasani_ - 03.05.2021 19:26

Good job

Ответить
@jorgek67
@jorgek67 - 26.02.2021 23:19

I was going crazy trying to understand this by myself, thanks for sharing this!

Ответить
@poria3547
@poria3547 - 13.02.2021 17:34

Just pay attention that npm 7 has changed this behavior.

Ответить
@m4heshd
@m4heshd - 31.01.2021 07:57

The best explanation on the internet regarding this topic. Goddamn you're good at that. Node & NPM docs sucks big time.

Ответить
@markojovanovic8444
@markojovanovic8444 - 26.01.2021 16:19

Great explanation, thank you for taking your time to record this!

Ответить
@blipojones2114
@blipojones2114 - 08.12.2020 22:53

clearest explanation, better than docs or anything else I could find for the past hour!
I'm knee deep in a project that involves monorepo tooling / workspaces and needed to know all this inside and out, thanks!

Ответить
@mohitgupta181191
@mohitgupta181191 - 19.08.2020 13:04

Very helpful video. Thanks

Ответить
@vipulnema
@vipulnema - 27.07.2020 14:16

Very well explained with Example. Thanks

Ответить