当尝试安装flutter的firebase工具时,Npm会出现错误

cgfeq70w  于 2023-03-03  发布在  Flutter
关注(0)|答案(3)|浏览(194)

当我在Node.js命令提示符下运行“npm install -g firebase-tools”时,我得到了以下信息。

C:\Users\DELL>npm install -g firebase-tools
npm WARN deprecated har-validator@5.1.3: this library is no longer supported
npm WARN deprecated debug@4.1.0: 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 debug@4.1.1: 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 uuid@3.4.0: 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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

changed 687 packages, and audited 688 packages in 2m

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

21 vulnerabilities (15 moderate, 6 high)
ih99xse1

ih99xse11#

所以,我决定忽略折旧的错误,继续安装的进一步步骤,我能够完成Firebase的安装。

tkclm6bt

tkclm6bt2#

尝试npm cache verify,然后重试

ar7v8xwq

ar7v8xwq3#

尝试使用curl -sL https://firebase.tools | bash安装。对我有效。

相关问题