前提・実現したいこと
windows10でfirebaseをチャートを見ながら勉強しています。
node.jpはインストール済みです。
firebaseでinitしても「firebase.json」と「.firebaserc」というファイルが形成されません。
また、「firebase use --add」と打つと
「? What alias do you want to use for this project? (e.g. staging)」
という表示がされて止まってしまいます。
どうしたら解決するでしょうか?
1、
デスクトップ上に「Test」フォルダを作りその中に「public」フォルダを作る。
「Test」フォルダでコマンドプロンプトを開き、「npm install -g firebase-tools」と打ってエンター。するとフォルダ内に「'~」というフォルダができました。
続いて、「firebase login」と打ってエンター。ログイン成功。
続いて、「firebase init」と打ってエンター。
「Hosting: Configure and deploy Firebase Hosting sites」を選ぶ以外はデフォルトで全てエンター。すると、
? Are you ready to proceed? Yes ? Which Firebase CLI features do you want to setup for this folder? Press Space to select features, then Enter to confirm your choices. Hosting: Configure and deploy Firebase Hosting sites === Project Setup First, let's associate this project directory with a Firebase project. You can create multiple project aliases by running firebase use --add, but for now we'll just set up a default project. i .firebaserc already has a default project, skipping === Hosting Setup Your public directory is the folder (relative to your project directory) that will contain Hosting assets to be uploaded with firebase deploy. If you have a build process for your assets, use your build's output directory. ? What do you want to use as your public directory? public ? Configure as a single-page app (rewrite all urls to /index.html)? No ? File public/404.html already exists. Overwrite? No i Skipping write of public/404.html ? File public/index.html already exists. Overwrite? No i Skipping write of public/index.html i Writing configuration info to firebase.json... i Writing project information to .firebaserc... + Firebase initialization complete!
と出ます。フォルダを見ると「'~」というフォルダと「public」というフォルダしかありません。何が問題なのでしょうか?
また、「firebase use --add」と打つと
「? What alias do you want to use for this project? (e.g. staging)」
と表示されますが、どうするのが正解なのでしょうか?
追記:もしかしたらプロジェクトを作りすぎかもしれません。
合計で5つほど作ったので消して試してみます。
あなたの回答
tips
プレビュー