2016-09-26 5 views
0

イオニック2でファイアベースを使いたいです。最近のバージョンのIonic2のためにチュートリアルに慣れました。 github pageには、次の言葉:イオニック2でファイアベースを使用する

UPDATE MAY 14th 2016: Firebase AngularFire2 has been updated to work with the latest version of Angular2 and Ionic2 has not so this will only work if you load the specific version of AngularFire2 with your application

"angular2": "2.0.0-beta.13", 
"angularfire2": "^2.0.0-alpha.16", 

私はpackage.jsonファイルを編集するために持っていると思うが、私は方法がわかりませんか? EDIT:これは私のpackage.jsonファイルを編集した後です:事前に

npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v6.5.0 npm ERR! npm v3.10.3

npm ERR! No compatible version found: [email protected] npm ERR! Valid install targets: npm ERR! 2.0.0-beta.9-201606271842,etc.....

npm ERR! npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\s_a_m\Desktop\angular-tutorial\ionic\devdactic-firebase\npm-debug.log

ありがとう:

{ 
    "dependencies": { 
    "@angular/common": "2.0.0-rc.4", 
    "@angular/compiler": "2.0.0-rc.4", 
    "@angular/core": "2.0.0-rc.4", 
    "@angular/platform-browser": "2.0.0-rc.4", 
    "@angular/platform-browser-dynamic": "2.0.0-rc.4", 
    "@angular/http": "2.0.0-rc.4", 
    "@angular/forms": "0.2.0", 
    "es6-shim": "0.35.1", 
    "ionic-angular": "2.0.0-beta.13", 
    "ionic-native": "1.3.10", 
    "ionicons": "3.0.0", 
    "reflect-metadata": "0.1.8", 
    "rxjs": "5.0.0-beta.6", 
    "zone.js": "0.6.12", 
    "angular2": "2.0.0-beta.13",     <--- added this one 
    "angularfire2": "^2.0.0-alpha.16"    <--- and this 
    }, 
    "devDependencies": { 
    "del": "2.2.0", 
    "gulp": "3.9.1", 
    "gulp-watch": "4.3.5", 
    "ionic-gulp-browserify-typescript": "2.0.0", 
    "ionic-gulp-fonts-copy": "^1.0.0", 
    "ionic-gulp-html-copy": "^1.0.0", 
    "ionic-gulp-sass-build": "^1.0.0", 
    "ionic-gulp-scripts-copy": "^2.0.0", 
    "ionic-gulp-tslint": "^1.0.0", 
    "tslint-ionic-rules": "0.0.4", 
    "run-sequence": "1.1.5" 
    }, 
    "name": "devdactic-firebase", 
    "description": "devdactic-firebase: An Ionic project", 
    "cordovaPlugins": [ 
    "cordova-plugin-device", 
    "cordova-plugin-console", 
    "cordova-plugin-whitelist", 
    "cordova-plugin-splashscreen", 
    "cordova-plugin-statusbar", 
    "ionic-plugin-keyboard" 
    ], 
    "cordovaPlatforms": [] 
} 

私はnpm installを入力するとき、私はこのエラーを取得します!

答えて

0

あなたが欲しいangularFireバージョンがわかっている場合は、ちょうどその

"angularfire2": "^xxxVersion" 

はあなたnode_modulesフォルダを削除できることを確認するpackage.jsonファイルでそれを変更することができ、そしてターミナル npm installに再実行。

NPMパッケージclick here

+0

イオン角度と角度2は同じバージョンですか? –

+0

angular2の線を取り除いてイオンの角度を残しておいても同じエラーが出る –

+0

はい、イオンのバージョンが正しくない可能性がありますか?これはnpmモジュールhttps://www.npmjs.com/package/ionic-angularですか?もしそうなら、これは最新のバージョン 'v2.0.0-beta.11' @Samvanbeastlo –

0

上の続きを読むには私はfirebaseでの作業が、イオン2.2.3のバージョンで、私のためにそれは完璧に動作するので、それを使用しようとしています。

関連する問題