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!
A walk-through example can explain things so clearly. I've read the doc and different articles but just don't get the idea of it. With this video, it's so clear now...
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.
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
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).
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
From the terminal, in your project's root directory you can run `npm init` without the backticks to create a new package.json. I don't know about angular, but typically when you initialize a new framework-based application it should come with a package.json
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!
A walk-through example can explain things so clearly. I've read the doc and different articles but just don't get the idea of it. With this video, it's so clear now...
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.
Very easy to understand. Your example of react and react-dom is the best.
I was going crazy trying to understand this by myself, thanks for sharing this!
Brilliant explanation! Clear and concise
The example you gave using react and react-dom was perfect to get it. Thanks!
The best explanation on the internet regarding this topic. Goddamn you're good at that. Node & NPM docs sucks big time.
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
Great introduction to this concept. Subscribed.
Great explanation, thank you for taking your time to record this!
Thanks a lot for this great series of npm videos. I learned much and things are more clear for me then before
Well done!!
This is really helpful mate.
Thank you. Wonderful video. Excellent explanation.
Great explanation, thank you so much!
Very well explained with Example. Thanks
You are welcome!
Thank you very much for this great video!
Explanation in documentation is a trash. Thank you for making it clear. Excellent explanation!
Great explanation
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).
Hi, do you found an answer for this ? I'm asking myself the same question xD
@@angelmunoz6332 not really, the problem is some of the "leaders" in JS wolrd touching their left ear by their right hand! that must be fixed!
Just pay attention that npm 7 has changed this behavior.
You mean because of the fact that now it auto-install the peer-dependencies? Or there's something else?
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
From the terminal, in your project's root directory you can run `npm init` without the backticks to create a new package.json. I don't know about angular, but typically when you initialize a new framework-based application it should come with a package.json
Good explanation!
Then if I'm creating that needs other dependencies how force NPM to install it?
If you want to force npm to install something, you can simply put it in the main dependencies block and not have it as a peer dependency
Thanks!
Very helpful video. Thanks
Good job
putting you out that "he" ? react dom probably. what is "he" ? you said.
What should I do to fix warning? Do I need to add `react` to `package.json` or install it with `npm install react`?