I just updated firebase functions with this function npm i firebase-functions@latest
, and updated npm install -g firebase-tools
. And suddenly I have unabled to deploy all of my functions at firebase deploy --only functions
. I got all of these errors:
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.
Anyone know what's happening? I have tried this function on stackoverflow, but no luck at all. npm install --legacy-peer-deps
Please help me! I have been like this for two days!