angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

UNMET PEER DEPENDENCY rxjs@^5.0.1 during npm install 1.0.0-beta.28.3

Open alaindeurveilher opened this issue 9 years ago • 27 comments

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]

alaindeurveilher avatar Feb 02 '17 15:02 alaindeurveilher

Changing the "target" on tsconfig.json from "es5" to "es6" solved my problem.

befikirhm avatar Apr 26 '17 18:04 befikirhm

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

SebastienCoste avatar May 17 '17 07:05 SebastienCoste

running npm update in the same directory as my package.json worked for me.

maiasmith avatar Jun 12 '17 23:06 maiasmith

i was facing unmet peer dependancy of rxjs and zone.js . This issue got resolved for me. Steps I followed:

  1. npm update
  2. npm -g ls --depth=0 and npm ls --depth=0 and compare them
  3. removed the angular/core because that was not required for my project. i just needed angular cli.
  4. repeated the second step again and all the issues got resolved.

agrpriyal avatar Jul 27 '17 19:07 agrpriyal

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.

ketansahils avatar Dec 12 '17 19:12 ketansahils

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:

  1. npm install -g rxjs@6
  2. npm run reinstall

amritsubedi avatar Nov 05 '18 16:11 amritsubedi

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.