UNMET PEER DEPENDENCY
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.
I think we'll be fine when #312 is merged.
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.
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
@chran8 they need to publish a new version to npm :confused:
@chran8 You can install it from github directly:
npm install git+https://github.com/angular/angularfire2.git
We will be cutting a release soon!
@funnytao did you manually download the peer dependencies? I'm not sure what I am supposed to do.
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.
@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
I fixed this by upgrading my npm to version 3.10.5 from 2.?.?
npm install npm -g
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 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 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
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"
}
@davideast any updates on the release date? We can't install the package via npm using angular2 RC4.
would definitely like to see rc4. :)
anyone managed to get angular fire working with mgechev/angular2-seed? can anyone link a good seed to use angular 2 / typescript?
@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
- npm install firebase --save
- npm install git+https://github.com/angular/angularfire2.git
AngularFire2 is up to date on Angular RC5.