Termux-packages: firebase-tools install error

Created on 5 Aug 2017  ·  15Comments  ·  Source: termux/termux-packages

firebase-tools can no longer be installed on nodejs the following error

└── (empty)

npm ERR! Linux 3.10.72+
npm ERR! argv "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/usr/bin/npm" "install" "-g" "firebase-tools"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the iltorb package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs iltorb
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls iltorb
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /data/data/com.termux/files/home/npm-debug.log
npm ERR! code 1

bug report help wanted nodejs

All 15 comments

Hello i get same error i tried this https://stackoverflow.com/questions/37335259/trying-to-rollback-firebase-version-to-2-x but instead of version 2 i installed 3.9.1 and then updated to latest 3.9.2
maybe if you after "sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}"
try install 3.9.2 it would probably work

Is there a solution to this issue? I am facing the same issue right now. Above answer did not work for me.

I exactly have the same problem, i updated node and npm but it didn't solve the problem.

Install nodejs-current. Then try installing it again.

My current node version is v8.2.1.
I tried to install nodes-current, but it say Not Found:
sudo npm install nodejs-current
npm ERR! code E404
npm ERR! 404 Not Found: nodejs-current@latest

@GUILLALAB I meant pkg install nodejs-current

@vishalbiswas unfortunately i don't have pkg command as i'am on a mac.
I know Mac is hybrid BSD but i don't have pkg install.

@GUILLALAB pkg is a wrapper for apt in termux.

@vishalbiswas I finally solved my problem:
I added node to my $PATH, and i also created a symlink on /node, because the script wanted that then env node on /.

I have the same problem. The issue seems to be the grpc node package that doesn't build. Node-pre-gyp is used to download a prebuilt version of this, which it can't find. (gyp seems to think that the platform is android and the libc type is "unknown" which is why it can't find a binary for it.) So it falls back to building grpc directly.

This fails because "clang-5.0: error: unknown argument: '-zdefs'" So it's something wrong I think with node-gyp not setting the build settings correctly or identifying the platform correctly.

Any help by someone who knows node well would be very appreciated!

here's a work around: https://medium.com/@wschenk/getting-firebase-and-grpc-working-under-termux-115c25317ce3

Please downgrade your npm version to 6, then deploy it works.. As firebase is well designed for 6 and getting better for 8.. @wschenk @fornwall @godza-kauyani

Use npm install -g npm@6 to downgrade

Can be installed with latest nodejs-lts package:

~ $ npm install -g firebase-tools
/data/data/com.termux/files/usr/bin/firebase -> /data/data/com.termux/files/usr/lib/node_modules/firebase-tools/lib/bin/firebase.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/firebase-tools/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"android","arch":"arm"})

+ [email protected]
added 410 packages from 250 contributors in 34.779s

Closing issue as outdated.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bbtdev picture bbtdev  ·  3Comments

Cyb3rD3m0n picture Cyb3rD3m0n  ·  3Comments

am11 picture am11  ·  3Comments

loveablefellow007 picture loveablefellow007  ·  3Comments

tigran123 picture tigran123  ·  3Comments