LoginSignup
0
0

More than 5 years have passed since last update.

Actions on Google Appを作るときローカルでFirebase initしても何故かfunctionsがインストールされなかったのでメモ

Last updated at Posted at 2017-10-17

Actions on Google Appを作るための公式チュートリアル通りに進めていたのだが、
自分の環境ではコマンドが1個足りなかったのでメモ

自分の環境

Mac OS : バージョン 10.12.5
node : v6.11.4

問題の箇所

Actions on Google App
Dialogflowで初めてのアプリを作るチュートリアル
https://developers.google.com/actions/dialogflow/first-app

後半の方の「Build fulfillment」 の項目で、ローカルマシンにfirebase tootlsをインストールする時、

firebase init 

スクリーンショット 2017-10-18 0.06.24.png

にて、「Function」(下から3行目)を指定するだけでは、
sillynamemaker/functions/以下の一式はインストールされず
sillynamemaker/functions/package.jsonも
sillynamemaker/functions/index.jsも無かった。

調べたらfunctionsのインストール用の別のコマンドがあった。

firebase init functions

実行してみたところ、sillynamemaker/functions/以下の一式が無事にインストールされた。
自分の環境が何かおかしいのかもしれないが、同じことが起きた時のためにメモっておくでやんす。

以上

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