How to host flutter application in firebase [重复]

问题描述 投票:0回答:0

我正在按照 说明 我已经在 Windows 上安装了 CLI,但是当我在 VS 代码终端中运行命令

firebase init hosting
时它失败了:

PS D:\flutter\first_app> npm install -g firebase-tools                                                          
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be 
problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

changed 701 packages, and audited 702 packages in 29s

46 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS D:\flutter\first_app> firebase init hosting
firebase : File C:\Users\Nafanya\AppData\Roaming\npm\firebase.ps1 cannot be loaded because running scripts is disabled on this system. For more 
information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ firebase init hosting
+ ~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
PS D:\flutter\first_app>

我不知道是什么问题。这里有什么建议吗?

flutter firebase
© www.soinside.com 2019 - 2024. All rights reserved.