question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UNMET DEPENDENCY and UNMET PEER DEPENDENCY

See original GitHub issue

Installing the package in a newly created app with empty /node_modules I have these warnings thrown:

$ npm install react-bootstrap-table --save
app@0.0.0 c:\Users\user\sbox\node\app
├── UNMET DEPENDENCY react@^0.14.3
└─┬ react-bootstrap-table@1.3.3
  ├── classnames@2.2.1
  ├── UNMET PEER DEPENDENCY fbjs@^0.3.1
  ├── UNMET PEER DEPENDENCY react@^0.14.0
  └─┬ react-toastr@2.2.4
    ├── UNMET PEER DEPENDENCY react@^0.14.3
    ├── react-addons-update@0.14.3
    └── react-dom@0.14.3

npm WARN EPEERINVALID react-bootstrap-table@1.3.3 requires a peer of react@^0.14.0 but none was installed.
npm WARN EPEERINVALID react-toastr@2.2.4 requires a peer of fbjs@^0.3.1 but none was installed.
npm WARN EPEERINVALID react-toastr@2.2.4 requires a peer of react@^0.14.0 but none was installed.
npm WARN EPEERINVALID react-dom@0.14.3 requires a peer of react@^0.14.3 but none was installed.
npm WARN EPEERINVALID react-addons-update@0.14.3 requires a peer of react@^0.14.3 but none was installed.

I understand that it means that there is no React and fbjs packages. My first question is: is there a way to force your package to install its dependencies automatically?

My second question. I removed react-bootstrap-table and installed React and fbjs packages beforehand. fbjs was installed with this version:

"version": "0.5.1"

The warning says that react-bootstrap-table needs fbjs@^0.3.1. After re-installation of react-bootstrap-table it says that fbjs@0.5.1 is not welcomed, it needs only fbjs@^0.3.1:

$ npm install react-bootstrap-table --save
app@0.0.0 c:\Users\user\sbox\node\app
└─┬ react-bootstrap-table@1.3.3
  └── UNMET PEER DEPENDENCY fbjs@^0.3.1

npm WARN EPEERINVALID react-toastr@2.2.4 requires a peer of fbjs@^0.3.1 but none was installed.

So my second question is: Will your package work with fbjs@0.5.1?

I installed fbjs@^0.3.1 and eventually there were no any warnings. But what if my other packages will require fbjs@0.5.1? How may I install both versions of fbjs, one for your and one for others?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sranjithkcommented, May 22, 2017

@AllenFang Its worked for me, thank you.

0reactions
AllenFangcommented, Jan 4, 2016

thanks @staminaloops, check the newest version of react-bootstrap-table

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I fix the npm UNMET PEER DEPENDENCY warning?
UNMET PEER DEPENDENCY error is thrown when the dependencies of one or more modules specified in the package.json file is not met.
Read more >
Error npm UNMET PEER DEPENDENCY warning - Edureka
UNMET PEER DEPENDENCY error is thrown when the dependencies of one or more modules specified in the package.json file is not met.
Read more >
Addressing the shortcomings of peer dependencies - HackMD
When the app host does not come up with a resolution that satisfies all peer dependency requirements, we get the classic “unmet peer...
Read more >
UNMET PEER DEPENDENCY · Issue #15708 - GitHub
I get the error message UNMET PEER DEPENDENCY even though I have the said dependency installed. I'm tying to install eslint-config-airbnb ...
Read more >
check-peer-dependencies - npm
Checks peer dependencies of the current package. Offers solutions for any that are unmet.. Latest version: 4.1.0, last published: a year ago ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found