我刚刚用这个函数npm i firebase-functions@latest
更新了Firebase函数,并更新了npm install -g firebase-tools
.突然之间,我无法在firebase deploy --only functions
部署我所有的功能.我得到了所有这些错误:
Build failed: npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: firebase-functions-test@0.2.3 npm ERR! Found: firebase-functions@4.0.0-rc.0 npm ERR! node_modules/firebase-functions npm ERR! firebase-functions@"^4.0.0-rc.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer firebase-functions@">=2.0.0" from firebase-functions-test@0.2.3 npm ERR! node_modules/firebase-functions-test npm ERR! dev firebase-functions-test@"^0.2.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: firebase-functions@3.24.1 npm ERR! node_modules/firebase-functions npm ERR! peer firebase-functions@">=2.0.0" from firebase-functions-test@0.2.3 npm ERR! node_modules/firebase-functions-test npm ERR! dev firebase-functions-test@"^0.2.0" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /www-data-home/.npm/eresolve-report.txt for a full report.
有人知道发生了什么事吗?我在stackoverflow上试过这个功能,但一点也不成功.请帮帮我!我已经这样两天了!