[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fAbFToLAzrqxvc5GC9Jge-hMfLpJ663hRFBua7YoPNPA":3},{"code":4,"message":5,"data":6},200,"成功",{"id":7,"createdAt":8,"title":9,"content":10,"summary":11,"image":12,"uid":13,"user":14,"categoryId":21,"category":22,"subCategoryId":24,"subCategory":25,"comments":27,"status":17,"reason":28,"notice":28,"visitCount":29,"commentCount":30,"keywords":31},127,"2024-10-14T06:05:26.414Z","为flutter项目中配置firebase cli问题 - This tool has encountered an error.","## 一、背景\n在flutter项目中要引入firebase时，需要安装一下firebase cli，这样就可以在flutter项目中进行firebase的初始化。\n\n## 二、问题\n在Mac上安装firebase cli时，终端提示错误：\n> -- firebase-tools@This tool has encountered an error. Please file a bug on Github (https://github.com/firebase/firebase-tools/) and include firepit-log.txt is now installed\n\n![firebase cli error](https://image.xinwei.ltd/image1728885706405.png)\n\n\n## 三、安装\nfirebase提供了3种在Mac上的安装方式：\n### 3.1 终端命令\n在Mac上安装firebase cli\n```terminal\ncurl -sL firebase.tools | upgrade=true bash --verbose\n```\n\n### 3.2 下载二进制文件\n下载链接：[https://firebase.tools/bin/macos/latest](https://firebase.tools/bin/macos/latest)\n下载下来后是一个文件，需要使用chmod命令改成可执行文件。\n（下面命令中的`firebase_tools`改成你下载的文件名，建议下载的文件名改成firebase）\n```terminal\nchmod +x ./firebase_tools\n```\n\n### 3.3 使用npm安装\n```terminal\nnpm install -g firebase-tools\n```\n\n## 四、解决办法\n使用任何一种方式进行安装，但是在我安装的过程中出现如上的报错，解决办法是需要先卸载已经安装的firebase cli\n### 4.1 卸载\n```terminal\ncurl -sL firebase.tools | uninstall=true bash\n```\n\n### 4.2 安装\n```terminal\nnpm i -g firebase-tools\n```\n\n","在Mac上安装firebase cli时，终端提示错误\"This tool has encountered an error. Please file a bug on Github (https://github.com/firebase/firebase-tools/) and include firepit-log.txt\"","https://image.xinwei.ltd/image1728885706405.png",499668042977349,{"phone":15,"userId":13,"nickName":16,"vipType":17,"avatar":18,"sign":19,"createdAt":20},"13121171998","全栈老韩",1,"https://image.xinwei.ltd/images/IMG_5430.JPG","全栈工程师，擅长iOS App开发、前端（vue、react、nuxt、小程序&Taro）开发、Flutter、React Native、后端（midwayjs、golang、express、koa）开发、docker容器、seo优化等。","2024-01-01T16:14:30.305Z",2,{"id":21,"name":23},"IT技术",11,{"id":24,"name":26,"parentId":21},"Flutter",[],"",1002,0,"flutter,flutter firebase,flutter firebase install,firebase install"]