I am trying to install ionic 4 and all the necessary dependencies in -g
mode but I am presented with the following problem.
When I install everything I frame the following error:
npm ERR! peer dep missing: rxjs@^6.0.0, required by @angular/[email protected]
npm ERR! peer dep missing: rxjs@^5.5.11, required by @ionic-native/[email protected]
npm ERR! peer dep missing: rxjs@^5.5.11, required by @ionic-native/[email protected]
What I understood was that it requires the dependency rxjs
and due to how the errors are presented it was best to install the latest version of rxjs
so apply the following:
$ sudo npm install -g rxjs
And then to check again if the error existed I wrote
$ npm list -g --depth=0
And the funny thing is that only the first error was solved where it requires rxjs@^6.0.0
leaving the following:
npm ERR! peer dep missing: rxjs@^5.5.11, required by @ionic-native/[email protected]
npm ERR! peer dep missing: rxjs@^5.5.11, required by @ionic-native/[email protected]
So I went back to uninstall it to see what error marked, marking the 3 errors mentioned above, I thought then try to install the [email protected]
directly and I did so:
$ sudo npm install -g [email protected]
And then I checked the errors and I only checked the first one:
npm ERR! peer dep missing: rxjs@^6.0.0, required by @angular/[email protected]
So I thought to install the [email protected]
to solve the one that was missing, but when installing it and review the error I returned to mark this:
npm ERR! peer dep missing: rxjs@^5.5.11, required by @ionic-native/[email protected]
npm ERR! peer dep missing: rxjs@^5.5.11, required by @ionic-native/[email protected]
I do not know how to solve that, if I install the [email protected]
solves the last two errors, but if I install the [email protected]
solves only the first error, that rxjs
I must install to solve the 3 errors.
As additional data, this is what I have installed so far in my global dependencies, and I am developing in macOS High Sierra
├── @angular/[email protected]
├── @angular/[email protected]
├── @ionic-native/[email protected]
├── @ionic-native/[email protected]
├── @ionic/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── UNMET PEER DEPENDENCY rxjs@^6.0.0
├── [email protected]
├── [email protected]
└── [email protected]
I would greatly appreciate your help, as this has never happened to me.