Compatibility error that occurs during Firebase Functions deployment - firebase

The following error has occurred.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: functions#undefined
npm ERR! Found: firebase-admin#undefined
npm ERR! node_modules/firebase-admin
npm ERR! firebase-admin#"^111.5.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer firebase-admin#"^10.0.0 || ^11.0.0" from firebase-functions#4.2.1
npm ERR! node_modules/firebase-functions
npm ERR! firebase-functions#"^4.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!
npm ERR! For a full report see:
npm ERR! C:\Users\user\AppData\Local\npm-cache\_logs\2023-02-19T05_41_15_922Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache\_logs\2023-02-19T05_41_15_922Z-debug-0.log
After researching a solution, I was advised to use the following command, but the issue still remains unresolved.
npm install --force
npm install --legacy-peer-deps
Can anyone help me with a solution?

I just ran into this same issue installing dependencies for Firebase functions. What worked for me was going into the "package.json" file within the "functions" folder and changing
"firebase-admin": "^111.5.0"
to
"firebase-admin": "^11.0.0"
AFTER running firebase init functions, but before installing the dependencies with npm. Hope this helps!

Related

React 18 --> #mui/styles [FireCMS v1.0.3]

When installing "#camberi/firecms": "1.0.3" I get the following error:
npm ERR! peer react#"^17.0.0" from #mui/styles#5.11.2
npm ERR! node_modules/#mui/styles
npm ERR! #mui/styles#"5.11.2" from the root project
npm ERR! peer #mui/styles#"^5.9.0" from #camberi/firecms#1.0.3
npm ERR! node_modules/#camberi/firecms
npm ERR! #camberi/firecms#"1.0.3" from the root project
When visiting the Documentation from #mui/styles it tells me that it doesn't support React18, which is getting required by FireCMS:
npm ERR! Found: react#18.1.0
npm ERR! node_modules/react
npm ERR! react#"18.1.0" from the root project
npm ERR! peer react#"^18.1.0" from #camberi/firecms#1.0.3
npm ERR! node_modules/#camberi/firecms
npm ERR! #camberi/firecms#"1.0.3" from the root project
Is there a fix for that besides using Yarn or flags like --legacy-peer-deps or --force?
Thanks for the help in advance.

Getting an error while converting angular 10 to angular 11

installed node verion 16.13 previously it was node v 14.18.1
npm ERR! code ERESOLVE
Blockquote
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: RestaurantIntranet.WebUI#1.0.0
npm ERR! Found: #angular-devkit/build-angular#0.1001.7
npm ERR! node_modules/#angular-devkit/build-angular
npm ERR! dev #angular-devkit/build-angular#"~0.1101.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev #angular-devkit/build-angular#"~0.1101.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: #angular/compiler-cli#11.1.2
npm ERR! node_modules/#angular/compiler-cli
npm ERR! peer #angular/compiler-cli#"^11.0.0 || ^11.1.0-next" from #angular-devkit/build-angular#0.1101.2
npm ERR! node_modules/#angular-devkit/build-angular
npm ERR! dev #angular-devkit/build-angular#"~0.1101.2" 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.
this was old and new package.json
Got an Ans we have to run this command force as if we use normal ng update #angular/core#11 #angular/cli#11 it won`t work so used
ng update #angular/core#11 #angular/cli#11 --force

Can not install sass

I tried installing node-sass and it worked but the code in main.scss is not automatically transferred in style.css, then i deleted all the files including package.scss and tried reinstalling node-sass but i get these errors.
PS D:\web course\iti\bootstrap\sass> npm install node-sass
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
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 sass#1.0.0 No description
npm WARN sass#1.0.0 No repository field.
npm ERR! code EPERM
npm ERR! syscall unlink
npm ERR! path D:\web course\iti\bootstrap\sass\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, unlink 'D:\web course\iti\bootstrap\sass\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node'
npm ERR! [OperationalError: EPERM: operation not permitted, unlink 'D:\web course\iti\bootstrap\sass\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node'] {
npm ERR! cause: [Error: EPERM: operation not permitted, unlink 'D:\web course\iti\bootstrap\sass\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'D:\\web course\\iti\\bootstrap\\sass\\node_modules\\.node-sass.DELETE\\vendor\\win32-x64-83\\binding.node'
npm ERR! },
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'D:\\web course\\iti\\bootstrap\\sass\\node_modules\\.node-sass.DELETE\\vendor\\win32-x64-83\\binding.node',
npm ERR! parent: 'sass'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\TECH VALLEY\AppData\Roaming\npm-cache\_logs\2021-08-11T14_25_50_073Z-debug.log
PS D:\web course\iti\bootstrap\sass>
try
npm uninstall node-sass
then install again

How to introduce Stripe to Firebase

I am having trouble introducing Firebase into Stripe.
I have already deployed.
I am trying to this one (https://firebase.google.com/docs/use-cases/payments), and I have trouble in this phase.
I have already done 3.1 in the URL, but when I put npm install -g in functions, I get the error message below.
Can someone help me?
npm ERR! addLocal Could not install /Users/Takahiro/Desktop/RepFit-master/functions
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g"
npm ERR! node v6.11.2
npm ERR! npm v3.10.10
npm ERR! No version provided in package.json
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /Users/×××/Desktop/×××(site name)/functions/npm-debug.log

Using a repository as an npm dependency in meteor

I forked and changed an npm module today (node-cldr). Now I want to test if it still works with my meteor package (nemo64:translator). I found out that the less package has a way of referencing a commit on github. That did not work in my case. This is what happens if i try to run meteor test-packages ./:
npm ERR! Error: Problems were encountered
npm ERR! Please correct and try again.
npm ERR! missing: node-cldr#https://github.com/Nemo64/node-cldr/tarball/ea7e32150eb11418803760f87ff3958f569599b7, required by packages-for-meteor-smartpackage-16i2g97#0.0.0
npm ERR! extraneous: cldr#2.2.1 /data/marco/Git/meteor/nemo64:translator/.npm/plugin/language-compiler-new-ee22eu/node_modules/cldr
npm ERR! at shrinkwrap_ (/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/shrinkwrap.js:30:15)
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/shrinkwrap.js:24:5
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/lib/ls.js:44:30
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/read-installed/read-installed.js:130:5
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/read-installed/read-installed.js:244:14
npm ERR! at cb (/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/read-installed/read-installed.js:244:14
npm ERR! at cb (/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)
npm ERR! at /home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/read-installed/read-installed.js:244:14
npm ERR! at cb (/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.13.0-32-generic
npm ERR! command "/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/node" "/home/marco/.meteor/packages/meteor-tool/.1.0.28.d1izik++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/bin/npm" "shrinkwrap"
npm ERR! cwd /data/marco/Git/meteor/nemo64:translator/.npm/plugin/language-compiler-new-ee22eu
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /data/marco/Git/meteor/nemo64:translator/.npm/plugin/language-compiler-new-ee22eu/npm-debug.log
npm ERR! not ok code 0
=> Errors prevented startup:
While building plugin `language-compiler` in package `nemo64:translator`:
error: couldn't run `npm shrinkwrap`
Am I doing something wrong?

Resources