[email protected] preinstall fails when updating to, or installing the latest version of firebase-tools (8.17.0) on OSX
[REQUIRED] Environment info
attempting to update to the lastest version via npm as per the instructions:
│ Update available 8.16.2 → 8.17.0
│ To update to the latest version using npm, run npm install -g firebase-tools
│ For other CLI management options, visit the CLI documentation (https://firebase.google.com/docs/cli#update-cli)
v8.16.2 was working correctly.
firebase-tools:
macOS Catalina - 10.15.7 Node v12.20.0 NPM 6.14.8
[REQUIRED] Test case
a test case cannot be provided, as this is an installation/update bug report.
[REQUIRED] Steps to reproduce
attempt to install firebase tools with npm by running npm install -g firebase-tools
[REQUIRED] Expected behavior
Successful installation, and availability of the firebase-tools, or should a failure in upgrading occur, the previous functioning version.
[REQUIRED] Actual behavior
The installation fails with the following:
➜ firebase git:(feat/tags) ✗ npm remove -g firebase-cli && npm install -g firebase-tools
up to date in 0.032s
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
npm WARN deprecated [email protected]: this library is no longer supported
> [email protected] preinstall /Users/paulvanzyl/.nvm/versions/node/v12.20.0/lib/node_modules/firebase-tools/node_modules/publish-please
> node lib/pre-install.js
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Starting from v2.0.0 publish-please can't be installed globally. !!
!! Use local installation instead : 'npm install --save-dev publish-please', !!
!! Or use npx if you do not want to install publish-please as a dependency. !!
!! (learn more: https://github.com/inikulin/publish-please#readme). !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
as a side note, I had originally tried under node v10.* and then switched to v12.
I'm using node v13 but it still fails so I think we can only install locally
My CI CD pipeline is also failing because I can't install firebase-tools in my Docker image.
Same here, CI completely broken...
[email protected] also does not work.
I've tried it under node v12 and v14 and same issue. I'm wondering if this is a dependency issue because I'm not seeing publish-please listed as a direct dependency of firebase-tools.
My node version is v12.19.0 and failed installing [email protected]. It failed due to [email protected] and it removed the old version. Now I can't install firebase-tools again.

same error here
Looks like you've got fast internet @jsockchain
Here's link to the official documentation

Worked on:
Ubuntu 20.04
Node 12.20.0
NPM 6.14.9
Looks like you've got fast internet @jsockchain Here's link to the official documentation
Ubuntu 20.04
yes, if you have ubuntu or mac, but windows?
I am on Mac.
macOS Catalina - 10.15.6
Node - v12.19.0
Npm - v6.14.8
Looks like you've got fast internet @jsockchain Here's link to the official documentation
Ubuntu 20.04
yes, if you have ubuntu or mac, but windows?
You can download the Firebase CLI binary for Windows
Looks like one of firebase-tools dependencies has publish-please in it's dependencies instead of devDependencies causing this issue.
adding publish-please to dependencies seems to be causing downstream problems #129
Same issue for me. Stops my GitLab pipline and also does not work locally.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! Starting from v2.0.0 publish-please can't be installed globally. !! !! Use local installation instead : 'npm install --save-dev publish-please', !! !! Or use npx if you do not want to install publish-please as a dependency. !! !! (learn more: https://github.com/inikulin/publish-please#readme). !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
same here
@DharmarajX24
In windows not possible to install binary

@DharmarajX24
In windows not possible to install binary
@Karman40
They do have that in their documentation. If that doesn't work, it'll be best to email Firebase support.
@DharmarajX24 According to the documentation, I tried but failed.
@DharmarajX24 According to the documentation, I tried but failed.
@Karman40 would be best to contact Firebase Support