0

I have a latest node version and also latest react native version. But my react native is based on old version when i am using this command npm install I am getting this error. Please help me to fix this issue I am new new react native field. I have attached the error image please see.

enter image description here

Please help me to fix this issue I tried too many times but I can't fix this.

2
  • Did you try adding the --legacy-peer-deps ?? it may help Commented Sep 13, 2024 at 3:19
  • Did you try the suggestions in the error output? Commented Sep 13, 2024 at 14:31

1 Answer 1

0

Looks like the dependency in the image you shared, react-native-responsive-view-port, hasn't had a new version in five years (https://www.npmjs.com/package/react-native-responsive-view-port). I'd suggest seeing if you are able to comment out or remove any code that relies on that package, and then remove it for now, and repeat for any other small dependencies without recent versions.

You may find it's only a couple of small dependencies that you need to do that for in order to get the app building at least, and then you can review whether you can either a) switch to a different package that provides the same functionality but has been updated more recently to work with current React Native or b) fork the old dependencies to bring them up to date with the React Native version you are using (which may or may not be a lot of work depending on the functionality of the dependencies).

This may be useful in general for migrating your project to a more recent version of React Native: https://reactnative.dev/docs/upgrading.

Sign up to request clarification or add additional context in comments.

1 Comment

is there any other way to use that react-native-responseive-view-port

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.