“An unexpected error has occurred” after firebase deploy

前端 未结 14 1141
无人及你
无人及你 2020-12-20 14:53

When I am hosting my web page through firebase hosting then after writing command firebase deploy I got the following error:

Microsoft Windows [Versi         


        
14条回答
  •  囚心锁ツ
    2020-12-20 15:20

    It could be due to npm and node version For mac os, you can update npm using command:

    npm install -g npm@latest
    

    and update node directly by going to link https://nodejs.org/en/ and download installer. and run

    npm install -g firebase-tools
    

    For removing firebase hosting deployment errors (also if you are updating existing hosted site) you can do process again 1] firebase login 2] firebase init 3] firebase deploy

    Make sure your current folder has two things: public folder (which contains all files index.html) And firebase.json file

提交回复
热议问题