angular-cli: Install cli peer dep missing rxjs and extraneous tsickle

OS?

Windows 7 x64 , running a cygwin console

Versions.

As a forewarning, we are moving the CLI npm package to “@angular/cli” with the next release, which will only support Node 6.9 and greater. This package will be officially deprecated shortly after.

To disable this warning use “ng set --global warnings.packageDeprecation=false”.

angular-cli: 1.0.0-beta.28.3 node: 6.9.1 os: win32 x64

Repro steps.

I just installed it:

$ npm install -g angular-cli npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue C:\Users\Hubert\AppData\Roaming\npm\ng -> C:\Users\Hubert\AppData\Roaming\npm\node_modules\angular-cli\bin\ng

node-sass@4.5.0 install C:\Users\Hubert\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-sass node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.0/win32-x64-48_binding.node Download complete Binary saved to C:\Users\Hubert\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-sass\vendor\win32-x64-48\binding.node Caching binary to C:\Users\Hubert\AppData\Roaming\npm-cache\node-sass\4.5.0\win32-x64-48_binding.node

node-sass@4.5.0 postinstall C:\Users\Hubert\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-sass node scripts/build.js

Binary found at C:\Users\Hubert\AppData\Roaming\npm\node_modules\angular-cli\node_modules\node-sass\vendor\win32-x64-48\binding.node Testing binary Binary is fine C:\Users\Hubert\AppData\Roaming\npm

[list of all packages]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\angular-cli\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”}) npm WARN @angular/core@2.4.6 requires a peer of rxjs@^5.0.1 but none was installed.

The log given by the failure.

In addition to above:

$ npm -g list | grep angular ±- angular-cli@1.0.0-beta.28.3 | ±- @angular-cli/ast-tools@1.0.16 | | ±- @angular/tsc-wrapped@0.5.2 | ±- @angular-cli/base-href-webpack@1.0.16 | ±- @angular/compiler@2.4.6 | ±- @angular/compiler-cli@2.4.6 | ±- @angular/core@2.4.6 npm ERR! peer dep missing: rxjs@^5.0.1, required by @angular/core@2.4.6 npm ERR! extraneous: tsickle@0.2.5 C:\Users\Hubert\AppData\Roaming\npm\node_modules\angular-cli\node_modules@angular-cli\ast-tools\node_modules\tsickle

Mention any other details that might be useful.

I was able to run ng new myapp without problem.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (5 by maintainers)

Most upvoted comments

I started off fresh from with new application from scratch and was able to get a clean result with npm list -g --depth=0

Following are the steps.

  1. Uninstall angular-cli from global scope This will remove old version of angular cli which has been deprecated and renamed to @angular/cli npm uninstall -g angular-cli npm cache clean npm uninstall --save-dev angular-cli

  2. Install @angular/cli at both global scope and current applications local scope Global package: npm uninstall -g @angular/cli npm cache clean npm install -g @angular/cli@latest

Local project package: npm install --save-dev @angular/cli@latest

This kind of solved it for me (running osx 10.12.2), i had an old version installed so did:

➜  ~ npm uninstall -g angular-cli @angular/cli
➜  ~ npm cache clean
➜  ~ npm install -g @angular/cli@latest

But unfortunately still got:

npm WARN @angular/core@2.4.6 requires a peer of rxjs@^5.0.1 but none was installed.

Running ng help just crashed because of missing rxjs modules. So i just did:

➜  ~ npm install -g rxjs  
/usr/local/lib
└─┬ rxjs@5.1.0 
  └── symbol-observable@1.0.4 

After this the cli works correctly…

Doing npm install -g rxjs helped to get rid of rxj peer error, but the extraneous was still there.

So I did what @slapers wrote and that got rid of extraneous, but peer rxjs WARN (not ERR) came back:

npm WARN @angular/core@2.4.6 requires a peer of rxjs@^5.0.1 but none was installed