Skip to content

Node Note

Node CLI#

Node 17 compatibility with CRA#

Yarn unmet peer dependency#

  • @2021-12-30
  • This is so frequently asked, hence it's hard to find a good answer, so I note it down here.
  • peer dependency is a week dependency, written in package.json, peerDependency and is not installed by yarn install (because the developer of the package decided so).
  • Reason here from yarnpkg/yarn:

    Situation:

    • Your app directly depends on modules A and C
    • Module A directly depends on module B
    • Module C has peer dependency on module B Outcome:
    • Yarn throws warnings into the console about peer dependency B being unmet for module C, NPM does not.