firebase-tools: publish-please@5.5.2 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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead
npm WARN deprecated har-validator@5.1.5: this library is no longer supported

> publish-please@5.5.2 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).          !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 11
  • Comments: 29

Most upvoted comments

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 According to the documentation, I tried but failed.

@Karman40 would be best to contact Firebase Support

I’ve already sent a message to Firebase support.

Ohh yes "We’ll usually get back to you within 2 business days (Monday-Friday, 9am-5pm Pacific Time), ". Maybe in a few weeks an answer will come.

@DharmarajX24 there seem to be unrelated errors explained in your output above, related to your local setup, specifically:

npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR! 
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 65534:1000 "/root/.npm"

I’m closing this issue, as I believe it be resolved, and would suggest investigating, and then opening a separate related issue if you believe it is specific to firebase-tools.

Yes I figured that out. 😃

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

@Karman40 would be best to contact Firebase Support