我嘗試firebase-cloud-messaging與 javascipt一起使用
我使用這個倉庫:https : //github.com/firebase/quickstart-js/tree/master/messaging
在“入門”中,我必須運行此命令npm install -g firebase-tools。但我有這樣的錯誤:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! protobufjs@6.11.2 postinstall: `node scripts/postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the protobufjs@6.11.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-10-28T09_18_46_217Z-debug.log
誰能幫我解釋一下這有什么問題,我已經在谷歌中嘗試過任何解決方案,但仍然是這樣的錯誤。謝謝
版本節點:v14.18.1
版本 npm:6.14.15
作業系統:Linux 初級 6
uj5u.com熱心網友回復:
嘗試運行這個:
sudo npm install --unsafe-perm -g firebase-tools
更多關于--unsafe-perm可以在這里閱讀
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/339795.html
標籤:javascript 节点.js 火力基地 新产品经理 firebase-cloud-消息
上一篇:如何按物件鍵過濾物件陣列?
