Skip to content

angular 2.1.0 release causes missing peer dependencies #2692

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ninj opened this issue Oct 13, 2016 · 22 comments · Fixed by #2704
Closed

angular 2.1.0 release causes missing peer dependencies #2692

ninj opened this issue Oct 13, 2016 · 22 comments · Fixed by #2704

Comments

@ninj
Copy link

ninj commented Oct 13, 2016

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

OSX + Windows 7

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.17
node: 6.7.0
os: darwin x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

ng init in empty directory, then npm ls

The log given by the failure.

Normally this include a stack trace and some more information.

[snip]
npm ERR! peer dep missing: @angular/[email protected], required by @angular/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular/[email protected]

Mention any other details that might be useful.

I would hope generated projects would have resolvable dependencies so that npm shrinkwrap
works out of the box.

I imagine there's a way to edit generated pom so that we can use use angular 2.1.0, I'm just not sure what it is...

package.json:

{
  "name": "ng-deps",
  "version": "0.0.0",
  "license": "MIT",
  "angular-cli": {},
  "scripts": {
    "start": "ng serve",
    "lint": "tslint \"src/**/*.ts\"",
    "test": "ng test",
    "pree2e": "webdriver-manager update",
    "e2e": "protractor"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "~2.0.0",
    "@angular/compiler": "~2.0.0",
    "@angular/core": "~2.0.0",
    "@angular/forms": "~2.0.0",
    "@angular/http": "~2.0.0",
    "@angular/platform-browser": "~2.0.0",
    "@angular/platform-browser-dynamic": "~2.0.0",
    "@angular/router": "~3.0.0",
    "core-js": "^2.4.1",
    "rxjs": "5.0.0-beta.12",
    "ts-helpers": "^1.1.1",
    "zone.js": "^0.6.23"
  },
  "devDependencies": {
    "@types/jasmine": "^2.2.30",
    "@types/node": "^6.0.42",
    "angular-cli": "1.0.0-beta.17",
    "codelyzer": "~0.0.26",
    "jasmine-core": "2.4.1",
    "jasmine-spec-reporter": "2.5.0",
    "karma": "1.2.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-cli": "^1.0.1",
    "karma-jasmine": "^1.0.2",
    "karma-remap-istanbul": "^0.2.1",
    "protractor": "4.0.9",
    "ts-node": "1.2.1",
    "tslint": "3.13.0",
    "typescript": "2.0.2"
  }
}
@kylecordes
Copy link

When I edit package.json to use angular 2.1.0 (router 3.1.0), I get a working result, but some warning:

npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.

I'm sure there are things to figure out in terms of the right level of version tolerance for CLI. 2.1.0 shipped yesterday, as the first point minor version release following the exciting new versioning plan for Angular. I would guess that essentially every project in the Angular ecosystem (certainly including all of ours here) has the first opportunity to see how well it works, what sort of version tolerance we can get away with.

@ninj
Copy link
Author

ninj commented Oct 14, 2016

I'll take a guess with this - angular-cli requests compiler-cli like this:

    "@angular/compiler-cli": "^0.6.0",

however, compiler (and everything else) is requested like this:

    "@angular/compiler": "^2.0.0",

is there a reason that compilier-cli is restricted to the 0.6.x line?

@usernamealreadyis
Copy link

complicated ng'

@colltoaction
Copy link

I updated @angular/compiler-cli to 2.1.0 and I get:

+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- UNMET PEER DEPENDENCY [email protected]

npm ERR! peer dep missing: @angular/compiler-cli@^0.6.0, required by @ngtools/[email protected]
npm ERR! peer dep missing: [email protected], required by @ngtools/[email protected]

In my dependencies I have:

  "dependencies": {
    "@angular/compiler-cli": "2.1.0",
    "@ngtools/webpack": "1.1.0",
    "typescript": "2.0.3",

@Disk1of5
Copy link

Also having issues in Ubuntu 16.04
├── UNMET PEER DEPENDENCY @angular/[email protected]
├─┬ @angular/[email protected]
│ ├── [email protected]
│ └── [email protected]
├── UNMET PEER DEPENDENCY @angular/[email protected]
├── @angular/[email protected]
├── UNMET PEER DEPENDENCY @angular/[email protected]

Thanks!

@Disk1of5
Copy link

Disk1of5 commented Oct 16, 2016

Is there any way to do a npm install -g angular-cli without version 2.1.0 ? can i force an install with a previous angular version?

@JanStureNielsen
Copy link

FWIW, I'm successfully running Angular 2.1.0 in a Angular CLI 1.0.0-beta.17 based project with a few npm warnings; here are my dependencies:

  "dependencies": {
    "@angular/common": "2.1.0",
    "@angular/compiler": "2.1.0",
    "@angular/core": "2.1.0",
    "@angular/forms": "2.1.0",
    "@angular/http": "2.1.0",
    "@angular/platform-browser": "2.1.0",
    "@angular/platform-browser-dynamic": "2.1.0",
    "@angular/router": "3.1.0",
    "@angular/material": "2.0.0-alpha.9-3",
    "core-js": "^2.4.1",
    "rxjs": "5.0.0-beta.12",
    "ts-helpers": "^1.1.1",
    "zone.js": "^0.6.23"
  },
  "devDependencies": {
    "@types/jasmine": "^2.2.30",
    "@types/node": "^6.0.42",
    "hammerjs": "2.0.8",
    "angular-cli": "1.0.0-beta.17",
    "codelyzer": "~0.0.26",
    "jasmine-core": "2.4.1",
    "jasmine-spec-reporter": "2.5.0",
    "karma": "1.2.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-cli": "^1.0.1",
    "karma-jasmine": "^1.0.2",
    "karma-remap-istanbul": "^0.2.1",
    "protractor": "4.0.9",
    "ts-node": "1.2.1",
    "tslint": "3.13.0",
    "typescript": "2.0.3"
  }

@ninj
Copy link
Author

ninj commented Oct 16, 2016

@JanStureNielsen - yes, the npm warnings are what we're interested in, even though the project should work.

Does npm ls run successfully in your project?

@Disk1of5
Copy link

I was able to resolve this by updating to nodeJS v6 in linux.. and then cache clean and reinstall.

@ashish173
Copy link

ashish173 commented Oct 16, 2016

I think this is a possible duplicate for #1941 moreover the the last answer by @JohnMcGuinness fixed issues like this for me,

reposting it here for convenience

npm uninstall -g angular-cli
npm cache clean
npm install -g node-gyp
npm install -g node-pre-gyp
npm install -g angular-cli

These 5 steps successfully installed [email protected]

@keyduq
Copy link

keyduq commented Oct 16, 2016

I have the same issue on Ubuntu 16.04 running ng new, and I already try what @ashish173 says, but still the same issue.

ng --version

Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.17
node: 6.8.1
os: linux x64

npm ls throws

npm ERR! peer dep missing: @angular/[email protected], required by @angular/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular/[email protected]

package.json

  "dependencies": {
    "@angular/common": "~2.0.0",
    "@angular/compiler": "~2.0.0",
    "@angular/core": "~2.0.0",
    "@angular/forms": "~2.0.0",
    "@angular/http": "~2.0.0",
    "@angular/platform-browser": "~2.0.0",
    "@angular/platform-browser-dynamic": "~2.0.0",
    "@angular/router": "~3.0.0",
    "core-js": "^2.4.1",
    "rxjs": "5.0.0-beta.12",
    "ts-helpers": "^1.1.1",
    "zone.js": "^0.6.23"
  },
  "devDependencies": {
    "@types/jasmine": "^2.2.30",
    "@types/node": "^6.0.42",
    "angular-cli": "1.0.0-beta.17",
    "codelyzer": "~0.0.26",
    "jasmine-core": "2.4.1",
    "jasmine-spec-reporter": "2.5.0",
    "karma": "1.2.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-cli": "^1.0.1",
    "karma-jasmine": "^1.0.2",
    "karma-remap-istanbul": "^0.2.1",
    "protractor": "4.0.9",
    "ts-node": "1.2.1",
    "tslint": "3.13.0",
    "typescript": "2.0.2"
  }

@JanStureNielsen
Copy link

@ninj -- npm ls shows similar errors:

npm ERR! peer dep missing: @angular/[email protected], required by @angular/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular/[email protected]
npm ERR! peer dep missing: @angular/[email protected], required by @angular/[email protected]
npm ERR! peer dep missing: [email protected], required by @ngtools/[email protected]

@drasko
Copy link

drasko commented Oct 16, 2016

drasko@Lenin:~/mainflux$ sudo npm install -g angular-cli
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: This package is discontinued. Use lodash@^4.0.0.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm ERR! registry error parsing json
/usr/bin/ng -> /usr/lib/node_modules/angular-cli/bin/ng

> [email protected] install /usr/lib/node_modules/angular-cli/node_modules/execSync
> node install.js

[execsync v1.0.2] Attempting to compile native extensions.
[execSync v1.0.2]
    Native code compile failed!!

> [email protected] install /usr/lib/node_modules/angular-cli/node_modules/node-zopfli
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download: https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.1-node-v48-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v48 ABI) (falling back to source compile with node-gyp) 
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/6.8.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/angular-cli/node_modules/node-zopfli/.node-gyp"
make: Entering directory '/usr/lib/node_modules/angular-cli/node_modules/node-zopfli/build'
make: *** No rule to make target '../.node-gyp/6.8.1/include/node/common.gypi', needed by 'Makefile'.  Stop.
make: Leaving directory '/usr/lib/node_modules/angular-cli/node_modules/node-zopfli/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/angular-cli/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.6.0-1-amd64
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/angular-cli/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/lib/node_modules/angular-cli/node_modules/node-zopfli/lib/binding/node-v48-linux-x64/zopfli.node" "--module_name=zopfli" "--module_path=/usr/lib/node_modules/angular-cli/node_modules/node-zopfli/lib/binding/node-v48-linux-x64"
gyp ERR! cwd /usr/lib/node_modules/angular-cli/node_modules/node-zopfli
gyp ERR! node -v v6.8.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/angular-cli/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/angular-cli/node_modules/node-zopfli/lib/binding/node-v48-linux-x64/zopfli.node --module_name=zopfli --module_path=/usr/lib/node_modules/angular-cli/node_modules/node-zopfli/lib/binding/node-v48-linux-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/angular-cli/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.6.0-1-amd64
node-pre-gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/angular-cli/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/lib/node_modules/angular-cli/node_modules/node-zopfli
node-pre-gyp ERR! node -v v6.8.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.30
node-pre-gyp ERR! not ok 
Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/angular-cli/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/angular-cli/node_modules/node-zopfli/lib/binding/node-v48-linux-x64/zopfli.node --module_name=zopfli --module_path=/usr/lib/node_modules/angular-cli/node_modules/node-zopfli/lib/binding/node-v48-linux-x64' (1)

> [email protected] install /usr/lib/node_modules/angular-cli/node_modules/node-sass
> node scripts/install.js

Start downloading binary at https://github.com/sass/node-sass/releases/download/v3.10.1/linux-x64-48_binding.node
Binary downloaded and installed at /usr/lib/node_modules/angular-cli/node_modules/node-sass/vendor/linux-x64-48/binding.node

> [email protected] postinstall /usr/lib/node_modules/angular-cli/node_modules/node-sass
> node scripts/build.js

"/usr/lib/node_modules/angular-cli/node_modules/node-sass/vendor/linux-x64-48/binding.node" exists. 
 testing binary.
Binary is fine; exiting.
/usr/lib
└─┬ [email protected] 
  ├─┬ @angular-cli/[email protected] 
  │ ├── [email protected] 
  │ └── [email protected] 
  ├── @angular-cli/[email protected] 
  ├── @angular/[email protected] 
  ├── UNMET PEER DEPENDENCY @angular/[email protected]
  ├─┬ @angular/[email protected] 
  │ ├── [email protected] 
  │ └── [email protected] 
  ├── UNMET PEER DEPENDENCY @angular/[email protected]
  ├── @angular/[email protected] 
  ├── UNMET PEER DEPENDENCY @angular/[email protected]
  ├─┬ @angular/[email protected] 
  │ └─┬ [email protected] 
  │   └─┬ [email protected] 
  │     └── [email protected] 
  ├── @ngtools/[email protected] 

...

  │   ├── [email protected] 
  │   ├── [email protected] 
  │   ├── [email protected] 
  │   ├── [email protected] 
  │   └── [email protected] 
  └── [email protected] 

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 [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/angular-cli/node_modules/node-zopfli):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

@castamir
Copy link

castamir commented Oct 16, 2016

there are WARNs even for angular v2.0.2. To get rid of them, I had to add

    "@angular/platform-server": "2.0.x",           <--- 2.0.x series of angular
    "typescript": "2.0.2"                          <--- exact version of Typescript

NOTE: I prefer using 2.0.x syntax over ~2.0.0 or ^2.0.0 which are not that easy to understand as 2.0.x


repro steps:

npm install -g angular-cli
ng new PROJECT
cd PROJECT
npm install                 # I have installed some 3rd party libs like bootstrap and got those WARNs

EDIT: my working dependencies:

{
  "dependencies": {
    "@angular/common": "2.0.x",
    "@angular/compiler": "2.0.x",
    "@angular/core": "2.0.x",
    "@angular/forms": "2.0.x",
    "@angular/http": "2.0.x",
    "@angular/platform-browser": "2.0.x",
    "@angular/platform-browser-dynamic": "2.0.x",
    "@angular/platform-server": "2.0.x",
    "@angular/router": "3.0.x",
    "core-js": "^2.4.1",
    "rxjs": "5.0.0-beta.12",
    "ts-helpers": "^1.1.1",
    "zone.js": "^0.6.23"
  },
  "devDependencies": {
    "@types/jasmine": "^2.2.30",
    "@types/node": "^6.0.42",
    "angular-cli": "1.0.0-beta.17",
    "codelyzer": "~0.0.26",
    "jasmine-core": "2.4.1",
    "jasmine-spec-reporter": "2.5.0",
    "karma": "1.2.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-cli": "^1.0.1",
    "karma-jasmine": "^1.0.2",
    "karma-remap-istanbul": "^0.2.1",
    "node-sass": "^3.10.1",
    "protractor": "4.0.9",
    "ts-node": "1.2.1",
    "tslint": "3.13.0",
    "typescript": "2.0.2"
  }
}

@filipesilva
Copy link
Contributor

#2704 should fix this. More specifically, the peerDependencies changes on packages/webpack/package.json.

@skiabox
Copy link

skiabox commented Oct 21, 2016

Installing globally the latest angular-cli (beta-18) solved this problem for me.

@ninj
Copy link
Author

ninj commented Oct 22, 2016

@filipesilva confirmed fixed - thanks!

@MELAS007
Copy link

i have something strange. my angular-cli versions :
angular-cli: 1.0.0-beta.28.3
node: 6.9.4
os: win32 x64
@angular/common: 2.0.0
@angular/compiler: 2.0.0
@angular/core: 2.0.0
@angular/forms: 2.0.0
@angular/http: 2.0.0
@angular/platform-browser: 2.0.0
@angular/platform-browser-dynamic: 2.0.0
@angular/router: 3.0.0
@angular/compiler-cli: 0.6.1
@angular/platform-server: 2.0.0
@angular/tsc-wrapped: 0.3.0

and package file:
"scripts": {
"build.dev": "gulp build.dev --color --config-env dev",
"build.dev.watch": "gulp build.dev.watch --color",
"build.e2e": "gulp build.e2e --color",
"build.prod": "gulp build.prod --color --config-env prod",
"build.prod.exp": "gulp build.prod.exp --color --config-env prod",
"build.test": "gulp build.test --color",
"test.watch": "gulp test.watch --color",
"generate.manifest": "gulp generate.manifest --color",
"e2e": "protractor",
"e2e.live": "protractor --elementExplorer",
"gulp": "gulp",
"karma": "karma",
"karma.start": "karma start",
"postinstall": "gulp check.versions && npm prune && gulp webdriver",
"reinstall": "npm cache clean && npm install",
"serve.coverage": "remap-istanbul -b src/ -i coverage/coverage-final.json -o coverage -t html && npm run gulp -- serve.coverage --color",
"serve.dev": "gulp serve.dev --color --config-env dev",
"serve.e2e": "gulp serve.e2e --color",
"serve.prod": "gulp serve.prod --color --config-env prod",
"start": "gulp serve.dev --color",
"tasks.list": "gulp --tasks-simple --color",
"test": "gulp test --color",
"e2e.ci": "gulp build.prod --color && gulp build.js.e2e --color && gulp e2e --color",
"tests.all": "npm test && npm run e2e.ci",
"webdriver-start": "webdriver-manager start",
"webdriver-update": "webdriver-manager update"
},
"author": "Nitin Kumar Mishra",
"license": "MIT",
"devDependencies": {
"@angular/compiler-cli": "0.6.1",
"@angular/platform-server": "2.0.0",
"@angular/tsc-wrapped": "0.3.0",
"@types/async": "2.0.31",
"@types/browser-sync": "0.0.32",
"@types/connect-livereload": "0.5.29",
"@types/core-js": "0.9.32",
"@types/express": "4.0.32",
"@types/gulp": "3.8.31",
"@types/gulp-load-plugins": "0.0.27",
"@types/gulp-protractor": "1.0.28",
"@types/gulp-sass": "0.0.28",
"@types/gulp-shell": "0.0.28",
"@types/gulp-util": "3.0.28",
"@types/jasmine": "2.2.33",
"@types/node": "6.0.38",
"@types/protractor": "1.5.18",
"@types/rimraf": "0.0.27",
"@types/run-sequence": "0.0.27",
"@types/selenium-webdriver": "2.44.*",
"@types/systemjs": "0.19.30",
"@types/yargs": "0.0.30",
"@types/zone.js": "0.0.26",
"async": "2.0.1",
"autoprefixer": "6.3.7",
"browser-sync": "2.13.0",
"codelyzer": "1.0.0-beta.0",
"colorguard": "1.2.0",
"compression": "1.6.2",
"connect": "3.4.1",
"connect-history-api-fallback": "1.3.0",
"connect-livereload": "0.5.4",
"cssnano": "3.7.3",
"deep-extend": "0.4.1",
"doiuse": "2.4.1",
"event-stream": "3.3.3",
"express": "~4.14.0",
"express-history-api-fallback": "2.0.0",
"extend": "3.0.0",
"gulp": "3.9.1",
"gulp-cached": "1.1.0",
"gulp-clean-css": "2.0.11",
"gulp-concat": "2.6.0",
"gulp-concat-css": "2.3.0",
"gulp-filter": "4.0.0",
"gulp-inject": "4.1.0",
"gulp-inline-ng2-template": "3.0.1",
"gulp-load-plugins": "1.2.4",
"gulp-plumber": "~1.1.0",
"gulp-postcss": "6.1.1",
"gulp-progeny": "0.3.1",
"gulp-protractor": "2.4.0",
"gulp-replace": "0.5.4",
"gulp-sass": "2.3.2",
"gulp-sass-lint": "1.2.0",
"gulp-sourcemaps": "2.0.0-alpha",
"gulp-template": "4.0.0",
"gulp-tslint": "6.0.1",
"gulp-typescript": "2.13.6",
"gulp-uglify": "2.0.0",
"gulp-util": "3.0.7",
"gulp-watch": "4.3.8",
"is-ci": "1.0.9",
"isstream": "0.1.2",
"jasmine-core": "~2.4.1",
"jasmine-spec-reporter": "2.5.0",
"karma": "~0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "1.1.0",
"karma-jasmine": "~1.0.2",
"karma-mocha-reporter": "2.0.4",
"merge-stream": "1.0.0",
"open": "0.0.5",
"postcss-reporter": "1.4.1",
"protractor": "3.3.0",
"remap-istanbul": "0.6.4",
"rimraf": "2.5.3",
"run-sequence": "1.2.2",
"semver": "5.3.0",
"serve-static": "1.11.1",
"slash": "~1.0.0",
"stylelint": "7.0.2",
"stylelint-config-standard": "11.0.0",
"systemjs-builder": "0.15.31",
"tildify": "1.2.0",
"traceur": "0.0.111",
"ts-node": "1.0.0",
"tslint": "3.13.0",
"tslint-stylish": "2.1.0-beta",
"typescript": "2.0.2",
"walk": "2.3.9",
"yargs": "4.8.0"
},
"dependencies": {
"@angular/common": "2.0.0",
"@angular/compiler": "2.0.0",
"@angular/core": "2.0.0",
"@angular/forms": "2.0.0",
"@angular/http": "2.0.0",
"@angular/platform-browser": "2.0.0",
"@angular/platform-browser-dynamic": "2.0.0",
"@angular/router": "3.0.0",
"angularfire2": "^2.0.0-beta.7",
"core-js": "2.4.0",
"es-module-loader": "1.0.0",
"firebase": "^3.6.9",
"font-awesome": "4.6.3",
"highcharts": "4.2.5",
"jquery": "3.0.0",
"moment": "2.15.0",
"ng2-bootstrap": "1.1.5",
"reflect-metadata": "0.1.8",
"rxjs": "5.0.0-beta.12",
"systemjs": "0.19.38",
"zone.js": "0.6.23"
}
}
on npm install:
I got this :
npm WARN [email protected] requires a peer of rxjs@^5.0.1 but none was installed.
npm ERR! code 1

then i changed to rxjs@^5.0.1
i got this:
npm WARN @angular/[email protected] requires a peer of [email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of [email protected] but none was installed.
npm WARN @angular/[email protected] requires a peer of [email protected] but none was installed.

what can i do?

your help will be appreciated!

Thanks

@rinoldit
Copy link

rinoldit commented Feb 23, 2017

npm WARN @angular/[email protected] requires a peer of rxjs@^5.0.1 but non
e was installed.
how i can solve

@sandeep540
Copy link

I am getting this error

D:\angular\firebase\apartment>npm install angularfire2 firebase --save
[email protected] D:\angular\firebase\apartment
+-- [email protected]
`-- [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN [email protected] requires a peer of @angular/common@^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/compiler@^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/core@^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/platform-browser@^4.0.0 but none was installed.
npm WARN [email protected] requires a peer of @angular/platform-browser-dynamic@^4.0.0 but none was installed.

@magichim
Copy link

Just add
"peerDependencies": {} in package.json

and then, npm install.

you will see no error.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.