I got this error when I going to install firebase using this. npm install -g firebase-tools.
I read the questions related to firebase install errors. But a proper solution was not found.
npm version - 8.15.0
node version - v16.17.0
> PS E:\React\todo_list> npm install -g firebase-tools npm WARN
> deprecated har-validator#5.1.3: this library is no longer supported
> npm WARN deprecated debug#4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4
> <4.3.1 have a low-severity ReDos regression when used in a Node.js
> environment. It is recommended you upgrade to 3.2.7 or
> 4.3.1debug/issues/797) 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/ma npm WARN deprecated request#2.88.2: request has
> been deprecated, see https://github.com/request/request/issues/3142
>
> changed 706 packages, and audited 707 packages in 17s
>
> 39 packages are looking for funding run `npm fund` for details
>
> 27 vulnerabilities (20 moderate, 7 high)
>
> To address issues that do not require attention, run: npm audit fix
>
> To address all issues (including breaking changes), run: npm audit
> fix --force
Related
I'm very new to js and trying to set up canvas-sketch, but keep getting this:
I updated in terminal using 'npm install --save core-js#^3' and am getting this still:
madeleinesanchez#Madeleines-MacBook-Pro ~ % npm install --save core-js#^3
up to date, audited 544 packages in 885ms
69 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
madeleinesanchez#Madeleines-MacBook-Pro ~ % npm install canvas-sketch-cli -g
npm WARN deprecated querystring#0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated core-js#2.6.12: core-js#<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
changed 541 packages, and audited 542 packages in 11s
68 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
madeleinesanchez#Madeleines-MacBook-Pro ~ %
I've tried all kinds of workarounds but maybe am doing something wrong. Send help! lol thank you
Tried npm install --save core-js#^3, npm install --save core-js#^3, npm cache clean, npm update. I also tried npm uninstall core-js and then npm i core-js
I was expecting to stop recieving warnings about the old version after updating it.
can somebody help me? I'd like to install Firebase.
But I became a lot of message, like these:
npm WARN deprecated source-map-resolve#0.5.3: See ...
npm WARN deprecated chokidar#2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated resolve-url#0.2.1: .....
npm WARN deprecated circular-json#0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated left-pad#1.3.0: use String.prototype.padStart()
npm WARN deprecated acorn-dynamic-import#3.0.0: This is probably built in to whatever tool you're using. If you still need it... idk
etc. etc.
and I use this version of npm:PS C:\Users\otthon\haduzenet2\index>
npm -v
9.4.0
and node.js:PS C:\Users\otthon\haduzenet2\index>
node -v
v18.13.0
and the latest version for npm is:" a package manager for JavaScript. Latest version: 9.4.0, last published: 5 days ago."
My question: why are there so many deprecated components of npm?
I get the following when I run "npm install -g firebase-tools" on Node.js command prompt.
C:\Users\DELL>npm install -g firebase-tools
npm WARN deprecated har-validator#5.1.3: this library is no longer supported
npm WARN deprecated debug#4.1.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug#4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
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 deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
changed 687 packages, and audited 688 packages in 2m
35 packages are looking for funding
run `npm fund` for details
21 vulnerabilities (15 moderate, 6 high)
So, I decided to ignore the depreciated errors and continue with the further steps in installation and I was able to complete the firebase installation.
try npm cache verify, then try again
I am unable to install firebase tool.
> C:\Users\Mohit Saini>npm i -g firebase-tools
> npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
> npm ERR! Unexpected end of JSON input while parsing near '...ePY2w==","shasum":"89'
firstly run npm cache clean --force to clear previous caches
after that run npm cache verify which will bring 0 bytes indicating all cache was cleared.
lastly run npm install -g firebase-tools
note: running the clean --force command will deletes all data from your cache folder.
When I search for the error message, this Github issue shows up: https://github.com/firebase/firebase-tools/issues/2215, which seems to indicate the problem can be fixed by running:
npm cache verify
If you get problems installing the CLI, and are not familiar enough with the environment to fix them, I'd recommend installing the standalone binary version of the Firebase CLI instead.
I install firebase-tools with npm
but terminal can't find firebase-tools :(...
also I tried auto installing script "curl -sL https://firebase.tools | bash" but this also give me this error "This tool has encountered an error."
what should i do?
KangTaeui-MacBook-Pro-2:practice_react kangtaegeun$ sudo npm install firebase-tools -g
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
/Users/kangtaegeun/.npm-global/bin/firebase -> /Users/kangtaegeun/.npm-global/lib/node_modules/firebase-tools/lib/bin/firebase.js
> protobufjs#6.10.1 postinstall /Users/kangtaegeun/.npm-global/lib/node_modules/firebase-tools/node_modules/protobufjs
> node scripts/postinstall
+ firebase-tools#8.9.0
added 593 packages from 364 contributors in 32.084s
KangTaeui-MacBook-Pro-2:practice_react kangtaegeun$ firebase
-bash: /usr/local/bin/firebase: No such file or directory
KangTaeui-MacBook-Pro-2:practice_react kangtaegeun$