firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

[email protected] preinstall fails when updating to, or installing the latest version of firebase-tools (8.17.0) on OSX

Open Pushplaybang opened this issue 5 years ago • 29 comments

[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).          !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Pushplaybang avatar Dec 06 '20 14:12 Pushplaybang

as a side note, I had originally tried under node v10.* and then switched to v12.

Pushplaybang avatar Dec 06 '20 15:12 Pushplaybang

I'm using node v13 but it still fails so I think we can only install locally

magiskboy avatar Dec 06 '20 15:12 magiskboy

My CI CD pipeline is also failing because I can't install firebase-tools in my Docker image.

AmanAgarwalX avatar Dec 06 '20 15:12 AmanAgarwalX

Same here, CI completely broken...

Nickman87 avatar Dec 06 '20 15:12 Nickman87

[email protected] also does not work.

kot10n5tn avatar Dec 06 '20 15:12 kot10n5tn

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.

jrstnly avatar Dec 06 '20 15:12 jrstnly

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.

definoob avatar Dec 06 '20 15:12 definoob

image

definoob avatar Dec 06 '20 15:12 definoob

same error here

Karman40 avatar Dec 06 '20 15:12 Karman40

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

Worked on:

Ubuntu 20.04
Node 12.20.0
NPM 6.14.9

DharmarajX24 avatar Dec 06 '20 15:12 DharmarajX24

Looks like you've got fast internet @jsockchain Here's link to the official documentation image Ubuntu 20.04

yes, if you have ubuntu or mac, but windows?

Karman40 avatar Dec 06 '20 15:12 Karman40

I am on Mac.

macOS Catalina - 10.15.6
Node - v12.19.0
Npm - v6.14.8

definoob avatar Dec 06 '20 15:12 definoob

Looks like you've got fast internet @jsockchain Here's link to the official documentation image Ubuntu 20.04

yes, if you have ubuntu or mac, but windows?

You can download the Firebase CLI binary for Windows

DharmarajX24 avatar Dec 06 '20 15:12 DharmarajX24

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

jrstnly avatar Dec 06 '20 15:12 jrstnly

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). !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

lukencrocker avatar Dec 06 '20 15:12 lukencrocker

same here

mafreud avatar Dec 06 '20 15:12 mafreud

@DharmarajX24

In windows not possible to install binary image

Karman40 avatar Dec 06 '20 15:12 Karman40

@DharmarajX24

In windows not possible to install binary image

@Karman40 image They do have that in their documentation. If that doesn't work, it'll be best to email Firebase support.

DharmarajX24 avatar Dec 06 '20 15:12 DharmarajX24

@DharmarajX24 According to the documentation, I tried but failed.

Karman40 avatar Dec 06 '20 16:12 Karman40

@DharmarajX24 According to the documentation, I tried but failed.

@Karman40 would be best to contact Firebase Support

DharmarajX24 avatar Dec 06 '20 16:12 DharmarajX24