Installation Problems with firebase-admin (on windows 10 and Linux plataform)

537 views
Skip to first unread message

Armando Noval

unread,
Jun 26, 2018, 10:14:43 AM6/26/18
to Firebase Google Group
I am trying to work with firebase cloudfunctions, my problem is when I prepare the workspace, for which I follow the steps mentioned in the Firebase webpage:

- On node.js version 6.14.0 I tried to actualize both the firebase-tools@latest and firebase-admin@latest. On doing this, I get an error, which I transcribe. I would like to comment on the fact that I made it not only on Linux environment with ubuntu but on windows 10 as well. I also changed to latest versions of node.js and firebase-admin but the same error was repeated.  Finally I tried to install the latest  version of node-pre-gyp but the same error appears.

This is my log file when I tried to install both firebase-admin and firebase-tools: The file is attached to this mail.


I appreciate if someone can help me


npm -g install firebase-tools@latest firebase-admin@latest 
/home/armando/.nvm/versions/node/v6.14.0/bin/firebase -> /home/armando/.nvm/versions/node/v6.14.0/lib/node_modules/firebase-tools/bin/firebase

> grpc@1.12.4 install /home/armando/.nvm/versions/node/v6.14.0/lib/node_modules/firebase-admin/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp ERR! Completion callback never invoked! 
node-pre-gyp ERR! System Linux 4.15.0-23-generic
node-pre-gyp ERR! command "/home/armando/.nvm/versions/node/v6.14.0/bin/node" "/home/armando/.nvm/versions/node/v6.14.0/lib/node_modules/firebase-admin/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /home/armando/.nvm/versions/node/v6.14.0/lib/node_modules/firebase-admin/node_modules/grpc
node-pre-gyp ERR! node -v v6.14.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.0
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR!     <https://github.com/mapbox/node-pre-gyp/issues>
/home/armando/.nvm/versions/node/v6.14.0/lib
└── firebase-tools@3.19.0 

npm ERR! Linux 4.15.0-23-generic
npm ERR! argv "/home/armando/.nvm/versions/node/v6.14.0/bin/node" "/home/armando/.nvm/versions/node/v6.14.0/bin/npm" "-g" "install" "firebase-tools@latest" "firebase-admin@latest"
npm ERR! node v6.14.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! grpc@1.12.4 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 6
npm ERR! 
npm ERR! Failed at the grpc@1.12.4 install script 'node-pre-gyp install --fallback-to-build --library=static_library'.
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 grpc 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 --library=static_library
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs grpc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls grpc
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/armando/npm-debug.log
npm-debug.log

Kato Richardson

unread,
Jun 26, 2018, 12:57:43 PM6/26/18
to Firebase Google Group
Armando, any chance you could upgrade to a more recent version of node? A tool like nvm might be helpful here.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/daaaa8c3-7a36-4caa-ad58-e6d035367f4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Hiranya Jayathilaka

unread,
Jun 26, 2018, 2:16:23 PM6/26/18
to fireba...@googlegroups.com
According to the grpc team this is a known issue in node-pre-gyp: https://github.com/grpc/grpc/issues/15507

The most popular workaround for Windows seems to be disabling the antivirus.


For more options, visit https://groups.google.com/d/optout.


--

Hiranya Jayathilaka | Software Engineer | h...@google.com | 650-203-0128

Armando Noval

unread,
Jun 26, 2018, 9:01:07 PM6/26/18
to Firebase Google Group
Hi Kato. Thanks for you reply. Following your advice I tried with the tool nvm and I installed the node.js 8.11.3 version and 10.5.0, both latest versions o node. Though, the problem persists.
Any suggestion about a particular version number that I could be using to solve the issue ? 

Armando Noval

unread,
Jun 26, 2018, 9:01:07 PM6/26/18
to Firebase Google Group
Thanks Hiranya for your reply. 
On Windows I have already disabled tha antivirus and the problem persists
On Linux I have no antivirus running and the same problem raises.
Any suggestion will be appreciated.

Hiranya Jayathilaka

unread,
Jun 27, 2018, 7:01:41 PM6/27/18
to fireba...@googlegroups.com
This might be a network/proxy issue. Can you try this on a different network?


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages