0

I need to install the react-hls-player npm package to start the m3u8 stream, but when I install it, it gives me this error.

enter image description here

4
  • basically myapp is not a react js folder where you are installing the package
    – Rahul Mohanty
    Commented Oct 8, 2022 at 18:55
  • I usually set the settings in the my-app folder, but how do you recommend setting it? Commented Oct 8, 2022 at 19:15
  • Welcome to Super User. Sorry, we can't accept images of code or errors. Post those as text, so that we can try to reproduce the problem without having to re-type everything, and your question can be properly indexed or read by screen readers.
    – DavidPostill
    Commented Oct 8, 2022 at 19:38
  • 1
    Dunno why this was migrated. It’s a development question. // The error is clear, too: The React version you chose and the package you want are not (declared) compatible.
    – Daniel B
    Commented Oct 9, 2022 at 19:23

2 Answers 2

0

From the (very hard to see) screenshot it seems your app and react-hls-player require different versions of react. Hence the conflict of dependencies. You may have to force it or make it the same react version for both if --legacy-peer-deps doesn't work for you.

1

Use the --legacy-peer-deps option. Try npm install --legacy-peer-deps

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .