10
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

firebase-toolsをupdateする

Last updated at Posted at 2019-04-15

概要

firebaseコマンドを叩くとupdateしてくれって言われるので、言われるがままにアップデートしてみる。

現在の状態

firebase deployコマンドを叩くと、以下を言われる

$ firebase deploy --token "1/hO3xxxxxxxxxxxxxxxxxxxxxxxx........."

=== Deploying to 'xxx-xxxx-x-xxxxx'...

i  deploying hosting
i  hosting[fir-test-1-c7903]: beginning deploy...
i  hosting[fir-test-1-c7903]: found 1 files in public
✔  hosting[fir-test-1-c7903]: file upload complete
i  hosting[fir-test-1-c7903]: finalizing version...
✔  hosting[fir-test-1-c7903]: version finalized
i  hosting[fir-test-1-c7903]: releasing new version...
✔  hosting[fir-test-1-c7903]: release complete

✔  Deploy complete!

Project Console: https://console.firebase.google.com/project/xxx-xxxx-x-xxxxx/overview
Hosting URL: https://xxx-xxxx-x-xxxxx.firebaseapp.com


   ╭───────────────────────────────────────────╮
   │                                           │
   │      Update available 6.4.0 → 6.6.0       │
   │   Run npm i -g firebase-tools to update   │
   │                                           │
   ╰───────────────────────────────────────────╯

作業内容

以下のコマンドを実行する

npm i -g firebase-tools

実行

updateを実行

$ sudo npm i -g firebase-tools                                                                                         
/usr/bin/firebase -> /usr/lib/node_modules/firebase-tools/lib/bin/firebase.js

> @google-cloud/functions-emulator@1.0.0-beta.5 postinstall /usr/lib/node_modules/firebase-tools/node_modules/@google-cloud/functions-emulator
> node scripts/upgrade-warning


If you're using the Emulator via the Firebase CLI, you can
disregard this message.

If you're upgrading @google-cloud/functions-emulator, these
are the recommended upgrade steps:

1.  Stop the currently running emulator, if any:

        functions stop

2.  Uninstall the current emulator, if any:

        npm uninstall -g @google-cloud/functions-emulator

3.  Install the new version of the emulator:

        npm install -g @google-cloud/functions-emulator

If you have trouble after upgrading, try deleting the config
directory found in:

    ~/.config/configstore/@google-cloud/functions-emulator

Then restart the emulator. You can also check for any renegade
Node.js emulator processes that may need to be killed:

    ps aux | grep node

+ firebase-tools@6.6.0
added 556 packages from 274 contributors in 24.107s

バージョン確認

$ npm info firebase-tools version
6.6.0
10
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?