0

enter image description hereWhen I type

npm view react version 

I get 16.13.1.

How can I fix this? I need to use 15.6.2

I already tried npm install @. I think I have 15.6.2 but the newer react version of 16.13.1 is overriding it. How can I fix this?

beginner
  • 121
  • 6
  • update the version in the package.json for both react and react-dom and run `npm install`. You might have to do changes in your code given there's a breaking change. For that, check out the [changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md) to see anything impacts you – Gonzalo.- Sep 23 '20 at 15:46
  • @Gonzalo.- Am I allowed to do that. My advisor (I'm a HS intern) gave me the package.json and idt I can edit that. Is there any way for me to just go down to 15.6.2? – beginner Sep 23 '20 at 15:48

1 Answers1

0

You should try: npm install react@version

look at this solution: How to install a previous exact version of a NPM package?

Adi
  • 11
  • 1
  • 6