UNMET PEER DEPENDENCY rxjs@^5.0.1 during npm install 1.0.0-beta.28.3
Hi, I am trying to update my angular-cli, but I get this error during the installation, I don't know who's responsible for it (angular-cli or angular): UNMET PEER DEPENDENCY rxjs@^5.0.1
OS?
- Windows 7
- Mac OSX (El Capitan)
Versions.
angular-cli: 1.0.0-beta.28.3 node: 7.2.1 os: win32 x64
Repro steps.
Reproducible on 2 machines (Mac and Windows) during npm install -g angular-cli@latest which is supposed to install with version of angular 2.4.5
The log given by the failure.
+-- [email protected]
+-- UNMET PEER DEPENDENCY rxjs@^5.0.1
+-- [email protected]
...
npm WARN @angular/[email protected] requires a peer of rxjs@^5.0.1 but none was installed.
Mention any other details that might be useful.
When I install manually npm install -g rxjs it correctly installs rxjs
`-- [email protected]
`-- [email protected]
Changing the "target" on tsconfig.json from "es5" to "es6" solved my problem.
When I have an unmet peer dependency on packX while installing packY I add packX like this and everything works :
sudo npm install -g grunt-cli bower yo packX packY
running npm update in the same directory as my package.json worked for me.
i was facing unmet peer dependancy of rxjs and zone.js . This issue got resolved for me. Steps I followed:
- npm update
- npm -g ls --depth=0 and npm ls --depth=0 and compare them
- removed the angular/core because that was not required for my project. i just needed angular cli.
- repeated the second step again and all the issues got resolved.
It is quite strange that to update angular cli, we uninstall it first, clear cache and wait for an excruciatingly long time to install it again.
I got the same error over and over while trying to install ionic. This hopefully works for angular/cli too. I resolved it by following:
- npm install -g rxjs@6
- npm run reinstall
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.