Problem trying to install Angularfire2 in Ubuntu 18
Okay, so Im using Ionic 3 to create an app that will show and upload pictures on firebase, anyhow when I do try to install it I type:
npm install angularfire2 firebase promise-polyfill --save
And I get the following error:
`
npm WARN deprecated [email protected]: AngularFire has moved, we're now @angular/fire`> [email protected] install /home/abraham/Documentos/Ionic/IonicCurso/8gag/gagy/node_modules/grpc > node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v67 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error ENOENT: no such file or directory, open '/home/abraham/Documentos/Ionic/IonicCurso/1-myApp/=' gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: ENOENT: no such file or directory, open '/home/abraham/Documentos/Ionic/IonicCurso/1-myApp/=' gyp ERR! stack at Object.openSync (fs.js:451:3) gyp ERR! stack at Object.readFileSync (fs.js:351:35) gyp ERR! stack at readCAFile (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:472:15) gyp ERR! stack at download (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:444:22) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:189:19 gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:48:26 gyp ERR! stack at FSReqCallback.oncomplete (fs.js:162:5) gyp ERR! System Linux 4.15.0-43-generic gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=/home/abraham/Documentos/Ionic/IonicCurso/8gag/gagy/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/abraham/Documentos/Ionic/IonicCurso/8gag/gagy/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v67" gyp ERR! cwd /home/abraham/Documentos/Ionic/IonicCurso/8gag/gagy/node_modules/grpc gyp ERR! node -v v11.2.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/home/abraham/Documentos/Ionic/IonicCurso/8gag/gagy/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/abraham/Documentos/Ionic/IonicCurso/8gag/gagy/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v67' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/abraham/Documentos/Ionic/IonicCurso/8gag/gagy/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:978:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5) node-pre-gyp ERR! System Linux 4.15.0-43-generic node-pre-gyp ERR! command "/usr/local/bin/node" "/home/abraham/Documentos/Ionic/IonicCurso/8gag/gagy/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library" node-pre-gyp ERR! cwd /home/abraham/Documentos/Ionic/IonicCurso/8gag/gagy/node_modules/grpc node-pre-gyp ERR! node -v v11.2.0 node-pre-gyp ERR! node-pre-gyp -v v0.12.0 node-pre-gyp ERR! not ok Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/home/abraham/Documentos/Ionic/IonicCurso/8gag/gagy/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/abraham/Documentos/Ionic/IonicCurso/8gag/gagy/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v67' (1) npm WARN @ionic/[email protected] requires a peer of cordova-plugin-ionic@^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @angular/[email protected] requires a peer of @angular/common@>=6.0.0 <8 but none is installed. You must install peer dependencies yourself. npm WARN @angular/[email protected] requires a peer of @angular/core@>=6.0.0 <8 but none is installed. You must install peer dependencies yourself. npm WARN @angular/[email protected] requires a peer of @angular/platform-browser@>=6.0.0 <8 but none is installed. You must install peer dependencies yourself. npm WARN @angular/[email protected] requires a peer of @angular/platform-browser-dynamic@>=6.0.0 <8 but none is installed. You must install peer dependencies yourself. npm WARN @angular/[email protected] requires a peer of rxjs@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (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 ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install:
node-pre-gyp install --fallback-to-build --library=static_librarynpm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /home/abraham/.npm/_logs/2019-01-25T17_25_38_616Z-debug.log
My package.json has:
{
"name": "gagy",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"start": "ionic-app-scripts serve",
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint"
},
"dependencies": {
"@angular/animations": "5.2.11",
"@angular/common": "5.2.11",
"@angular/compiler": "5.2.11",
"@angular/compiler-cli": "5.2.11",
"@angular/core": "5.2.11",
"@angular/forms": "5.2.11",
"@angular/http": "5.2.11",
"@angular/platform-browser": "5.2.11",
"@angular/platform-browser-dynamic": "5.2.11",
"@ionic-native/core": "~4.18.0",
"@ionic-native/splash-screen": "~4.18.0",
"@ionic-native/status-bar": "~4.18.0",
"@ionic/pro": "2.0.4",
"@ionic/storage": "2.2.0",
"ionic-angular": "3.9.2",
"ionicons": "3.0.0",
"rxjs": "5.5.11",
"rxjs-compat": "^6.3.3",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.29"
},
"devDependencies": {
"@ionic/app-scripts": "3.2.1",
"typescript": "~2.6.2"
},
"description": "An Ionic project"
}
Thanks for the help :c
try this dude "angularfire2": "^4.0.0-rc.1",
npm install firebase @angular/fire --save dont you see that?
your npm throw that error too :
npm WARN deprecated [email protected]: AngularFire has moved, we're now @angular/fire