Getting error installing firebase in react [duplicate] - firebase

it is showing this as i am putting npm install firebase or npm i firebase in windows
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-currency-format#1.1.0
npm ERR! Found: react#18.2.0
npm ERR! node_modules/react
npm ERR! peer react#">=16.8.0" from #emotion/react#11.10.5
npm ERR! node_modules/#emotion/react
npm ERR! peer #emotion/react#"^11.0.0-rc.0" from #emotion/styled#11.10.5
npm ERR! node_modules/#emotion/styled
npm ERR! peerOptional #emotion/styled#"^11.3.0" from #mui/material#5.11.4
npm ERR! node_modules/#mui/material
npm ERR! peer #mui/material#"^5.0.0" from #mui/icons-material#5.11.0
npm ERR! node_modules/#mui/icons-material
npm ERR! 1 more (the root project)
npm ERR! 3 more (#mui/styled-engine, #mui/system, the root project)
npm ERR! peerOptional #emotion/react#"^11.5.0" from #mui/material#5.11.4
npm ERR! node_modules/#mui/material
npm ERR! peer #mui/material#"^5.0.0" from #mui/icons-material#5.11.0
npm ERR! node_modules/#mui/icons-material
npm ERR! #mui/icons-material#"^5.11.0" from the root project
npm ERR! 1 more (the root project)
npm ERR! 3 more (#mui/styled-engine, #mui/system, the root project)
npm ERR! peer react#">=16.8.0" from #emotion/styled#11.10.5
npm ERR! node_modules/#emotion/styled
npm ERR! peerOptional #emotion/styled#"^11.3.0" from #mui/material#5.11.4
npm ERR! node_modules/#mui/material
npm ERR! peer #mui/material#"^5.0.0" from #mui/icons-material#5.11.0
npm ERR! node_modules/#mui/icons-material
npm ERR! #mui/icons-material#"^5.11.0" from the root project
npm ERR! 1 more (the root project)
npm ERR! peerOptional #emotion/styled#"^11.3.0" from #mui/styled-engine#5.11.0
npm ERR! node_modules/#mui/styled-engine
npm ERR! #mui/styled-engine#"^5.11.0" from #mui/system#5.11.4
npm ERR! node_modules/#mui/system
npm ERR! #mui/system#"^5.11.4" from #mui/material#5.11.4
npm ERR! node_modules/#mui/material
npm ERR! 2 more (#mui/system, the root project)
npm ERR! 21 more (#emotion/use-insertion-effect-with-fallbacks, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^0.14 || ^15.0.0-rc || ^15.0.0 || ^16.0.0-rc || ^16.0.0 || ^17.0.0" from react-currency-format#1.1.0
npm ERR! node_modules/react-currency-format
npm ERR! react-currency-format#"^1.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react#17.0.2
npm ERR! node_modules/react
npm ERR! peer react#"^0.14 || ^15.0.0-rc || ^15.0.0 || ^16.0.0-rc || ^16.0.0 || ^17.0.0" from react-currency-format#1.1.0
npm ERR! node_modules/react-currency-format
npm ERR! react-currency-format#"^1.1.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 C:\Users\ADITI\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ADITI\AppData\Local\npm-cache\_logs\2023-01-29T06_34_53_211Z-debug-0.log

npm ERR! While resolving: react-currency-format#1.1.0
npm ERR! Found: react#18.2.0
Conflicting peer dependency: react#17.0.2
i think this react versions are not compatible react-currency-format
uninstall react version with
npm uninstall react
and try to update
npm install react#18.2.0
let me know if you handle this error.

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

Nepli preeti font input in angular textbox not working

I am using angular 14 and ngx-nepali-unicode not working, Is there any solution for it?
<input type="text" class="form-control" nepaliUnicode formControlName="ApplicantName" placeholder="Application Nepali">
When doing npm i it showing like
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: angular-test#0.0.0
npm ERR! Found: #angular/common#14.2.2
npm ERR! node_modules/#angular/common
npm ERR! #angular/common#"^14.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer #angular/common#"^8.1.1" from ngx-nepali-unicode#0.0.2
npm ERR! node_modules/ngx-nepali-unicode
npm ERR! ngx-nepali-unicode#"*" 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 C:\Users\User\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Local\npm-cache\_logs\2022-09-19T09_25_33_016Z-debug-0.log

npm ERR! Linux 4.4.0-31-generic

what's the cause of this error, and how do I fix it. I'm trying to install NPM and Nodejs. Please, quick response needed. This is truly pulling my hairs. I never knew it is this hard to deploy a meteor app because of all the dependencies.
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/opt/meteor/.nvm/versions/node/v4.8.4/bin/node" "/opt/meteor/.nvm/versions/node/v4.8.4/bin/npm" "rebuild" "--update-binary"
npm ERR! node v4.8.4
npm ERR! npm v2.15.11
npm ERR! path /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/sshpk/bin\sshpk-conv
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/opt/meteor/webapps/schoolapps/bundle/programs/server/npm/node_modules/sshpk/bin\sshpk-conv'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /opt/meteor/webapps/schoolapps/bundle/programs/server/npm/npm-debug.log
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/opt/meteor/.nvm/versions/node/v4.8.4/bin/node" "/opt/meteor/.nvm/versions/node/v4.8.4/bin/npm" "install"
npm ERR! node v4.8.4
npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! meteor-dev-bundle#0.0.0 install: `node npm-rebuild.js`
npm ERR! Exit status 254
npm ERR!
npm ERR! Failed at the meteor-dev-bundle#0.0.0 install script 'node npm-rebuild.js'.
npm ERR! This is most likely a problem with the meteor-dev-bundle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node npm-rebuild.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs meteor-dev-bundle
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls meteor-dev-bundle
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /opt/meteor/webapps/schoolapps/bundle/programs/server/npm-debug.log
meteor#christdoes:~/webapps/schoolapps/bundle/programs/server$ ^C
meteor#christdoes:~/webapps/schoolapps/bundle/programs/server$

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