我正在关注此帖子,以便能够通过Firebase为我的Android应用安排重复通知:enter link description here
问题是,最后,当我必须在以下部署我的函数时:firebase functions:log --project <FIREBASE_PROJECT_ID>
我的Windows终端说它无法识别firebase命令。所以我尝试安装firebase cli来访问它的命令。因此,在enter link description here之后我安装了Node.js,但是当我运行npm install -g firebase-tools
时出现以下错误:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: pinkie-promise@^2.0.0 (node_modules\firebase-tools\node_modules\globby\node_modules\pinkie-promise):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: No valid versions available for pinkie-promise
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: timed-out@^3.0.0 (node_modules\firebase-tools\node_modules\got\node_modules\timed-out):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: No valid versions available for timed-out
npm ERR! code ENOVERSIONS
npm ERR! No valid versions available for pinkie-promise
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-01-06T20_45_10_832Z-debug.log