LoginSignup
0
0

More than 3 years have passed since last update.

Something went wrong installing the "sharp" module

Last updated at Posted at 2020-05-26

なぜだか急にfirebase serve --only functionsがタイトルのエラーを吐いて止まってしまったのでメモ。

sharp とは 画像をリサイズするためのnpm moduleなのだが、一応
npm uninstall sharp
npm install sharp
をしても直らなかったので、

色々調べていると
npm rebuild
をすると良さげなことが書いてあったので、実行するとなんと!

The Cloud Functions emulator requires the module "firebase-admin" to be version >8.9.0 so your version is too old. You can probably fix this by running "npm install firebase-admin@latest" in your functions directory.

おい!最初からそう言えよ!!

となったので言われるがままに、そのあとにfirebase-functionsもinstallし直すといけました。
日々精進。

0
0
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
0
0