angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

UNMET PEER DEPENDENCY

Open funnytao opened this issue 10 years ago • 19 comments

Hi,

I followed the instruction to install angular-cli and then angularfire2. However, I got theses warnings:

npm WARN optional Skipping failed optional dependency /karma/chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected] npm WARN [email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN [email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN [email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN [email protected] requires a peer of @angular/[email protected] but none was installed. npm WARN [email protected] requires a peer of @angular/[email protected] but none was installed.

I checked the package.json file and the dependencies were all rc 3 version. Did I do anything wrong? Thank you.

funnytao avatar Jul 02 '16 20:07 funnytao

I think we'll be fine when #312 is merged.

5amfung avatar Jul 02 '16 22:07 5amfung

Yes, I saw it. Currently I have to change the package.json file and use rc 2 version. I also need to use angular form version 0.1.0. Good for now.

funnytao avatar Jul 02 '16 22:07 funnytao

hey @jeffbcross I see that #312 has been merged with the master branch, how would I reflect these changes in my system? I have been running

npm install angularfire2 firebase --save

but I still get the Unmet Peer Dependency

ghost avatar Jul 06 '16 23:07 ghost

@chran8 they need to publish a new version to npm :confused:

triniwiz avatar Jul 07 '16 19:07 triniwiz

@chran8 You can install it from github directly: npm install git+https://github.com/angular/angularfire2.git

mabdelfattah avatar Jul 12 '16 18:07 mabdelfattah

We will be cutting a release soon!

davideast avatar Jul 15 '16 18:07 davideast

@funnytao did you manually download the peer dependencies? I'm not sure what I am supposed to do.

break9 avatar Jul 18 '16 21:07 break9

never mind, I updated the package.json file with:

` "@angular/common": "2.0.0-rc.2"

"@angular/compiler": "2.0.0-rc.2",

"@angular/core": "2.0.0-rc.2",

"@angular/http": "2.0.0-rc.2",

"@angular/platform-browser": "2.0.0-rc.2",

"@angular/platform-browser-dynamic": "2.0.0-rc.2", `

as you explained above and the peer dependency issue went away.

break9 avatar Jul 18 '16 22:07 break9

@mabdelfattah, after installing the package with your command, I end up with compilation errors like Error: Cannot find module 'angularfire2' from .... The angularfire2 folder is present in the node_modules folder so I don't get it. Did you do anything in particular after running this command? Thanks

dbaq avatar Jul 19 '16 00:07 dbaq

I fixed this by upgrading my npm to version 3.10.5 from 2.?.?

npm install npm -g

bradintheusa avatar Jul 19 '16 14:07 bradintheusa

Ping! Anyone have any advice on how to successfully install angularfire2 currently? I tried a lot of the above and just seemed to head down a rabbit hole...

dparizek avatar Jul 29 '16 14:07 dparizek

@dparizek just follow the steps right here.

https://github.com/angular/angularfire2/blob/master/docs/1-install-and-setup.md

I am using this right now.

lexcaraig avatar Jul 29 '16 15:07 lexcaraig

@lexcaraig what version of node are you using?... this is what I am getting on latest MacOSX...

➜  projects nvm use stable
Now using node v6.2.1
➜  projects npm install -g angular-cli
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: This package has been discontinued in favor of lodash@^4.0.0.
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead.
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]: 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.
/Users/dave/.nvm/versions/v6.2.1/lib
└── (empty)

npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/dave/.nvm/versions/v6.2.1/bin/node" "/Users/dave/.nvm/versions/v6.2.1/bin/npm" "install" "-g" "angular-cli"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! path /Users/dave/.nvm/versions/v6.2.1/lib/node_modules/.staging/abbrev-4e789ab6
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/Users/dave/.nvm/versions/v6.2.1/lib/node_modules/.staging/abbrev-4e789ab6' -> '/Users/dave/.nvm/versions/v6.2.1/lib/node_modules/angular-cli/node_modules/npm/node_modules/abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename '/Users/dave/.nvm/versions/v6.2.1/lib/node_modules/.staging/abbrev-4e789ab6' -> '/Users/dave/.nvm/versions/v6.2.1/lib/node_modules/angular-cli/node_modules/npm/node_modules/abbrev'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/dave/projects/npm-debug.log
npm ERR! code 1

dparizek avatar Jul 29 '16 15:07 dparizek

Windows: 10 angular-cli: 1.0.0-beta.10 node: 4.4.7 os: win32 x64

I'm using this specs @dparizek

Here is my package.json file

"dependencies": {
    "@angular/common": "2.0.0-rc.4",
    "@angular/compiler": "2.0.0-rc.4",
    "@angular/core": "2.0.0-rc.4",
    "@angular/forms": "0.2.0",
    "@angular/http": "2.0.0-rc.4",
    "@angular/platform-browser": "2.0.0-rc.4",
    "@angular/platform-browser-dynamic": "2.0.0-rc.4",
    "@angular/router": "3.0.0-beta.2",
    "angularfire2": "^2.0.0-beta.2",
    "es6-shim": "0.35.1",
    "firebase": "^3.2.1",
    "reflect-metadata": "0.1.3",
    "rxjs": "5.0.0-beta.6",
    "systemjs": "0.19.26",
    "zone.js": "0.6.12"
  }

lexcaraig avatar Jul 29 '16 15:07 lexcaraig

@davideast any updates on the release date? We can't install the package via npm using angular2 RC4.

dbaq avatar Jul 29 '16 15:07 dbaq

would definitely like to see rc4. :)

thehashrocket avatar Jul 30 '16 20:07 thehashrocket

anyone managed to get angular fire working with mgechev/angular2-seed? can anyone link a good seed to use angular 2 / typescript?

ix-xerri avatar Aug 01 '16 19:08 ix-xerri

@ix-xerri: There is a branch of mgechev/angular2-seed with firebase already integrated: https://github.com/mgechev/angular2-seed/tree/angularfire2

You could try also install using the angular-cli by

  1. npm install firebase --save
  2. npm install git+https://github.com/angular/angularfire2.git

Jorg71 avatar Aug 05 '16 21:08 Jorg71

AngularFire2 is up to date on Angular RC5.

davideast avatar Aug 22 '16 23:08 davideast