Replies: 2 comments 1 reply
-
According to the screenshot, I think it is due to the version issues. However, it is very hard to know the root cause without delving deeper into your project. The following is one potential solution u could try: step 1First of all, ensure the version of npm view react-router-dom peerDependencies step 2You could try to clear cache and then reinstall. npm cache clean --force
npm install react-router-dom --save If you really could not find any workable solution, maybe you could try deleting the whole rm -rf node_modules package-lock.json
npm install |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Hello everyone,
I have a problem with the installation of react-router-dom. When the command runs, everything works, but it is not present in the dependencies in package.json. Here is the error message. Do you have any advice?

node v20.17.0
npm 11.0.0
Beta Was this translation helpful? Give feedback.
All reactions