Closed syncimprov closed 2 years ago
Hmmm, I have no idea why!!! I just tried it and it installs without any issues. What version of npm are you running? Did you try it with yarn?
BTW, note that the version 6.00 is in beta, but pretty solid for use.
Thanks for the quick response, Naresh.
The issue seems to be the version of npm. Works on 6.4.1. Does not work on 8.1.0. All I am trying to do is run your quick start sample.
Screenshot of error (tried several variations with the same issue)
I got it to install 6.0.0 on npm 8.1 after upping mobx and mobx-react:
"dependencies": {
"mobx": "^6.3.7",
"mobx-react": "^7.2.1",
"mobx-state-router": "^6.0.0-beta.2",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
So I think npm 7 & 8 are incompatible with version 6. You can try the --legacy-peer-deps
with newer versions of npm and see if you can make it work. Otherwise, switch to yarn version 1.x. It is much more stable & robust.
I tried --legacy-peer-deps
, but it did not work. Anyway, it is working with v6x. Thanks for your help.
Apologize in advance if this is not related to anything in your repository, but I am getting this error trying to install mobx-state-router using npm: