You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[v13.0.0 Blocker] Refactor functions:shell to not use request #2215
I am trying to run "npm install -g firebase-tools" command on linux OS but it gives me the above error every time.On the other hand when I try to run "npx create-react-app app-name" command, it works fine. I searched the solution on the internet but did not find any acceptable solution. Is there any way to fix this problem.
Reacted by Alessio Nossa, Ramil Valitov, Abraham Williams, Mike Senn, Makoto Sakaguchi and Simen Heggestøyl
@sadhon thanks for reporting this! The request module is one of the most popular libraries in the whole ecosystem so the deprecation has hit almost everyone, including us.
@bkendall is already working on removing request from firebase-tools.
Right now you do not need to worry about this, it's not a security vulnerability and we expect it to be fixed in a future version.
@samtstern I re-executed global install command and sorry, that one is a WARN, problem is @sindresorhus%2fis
npm -g install [email protected]
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\firebase-tools\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@sindresorhus%2fis - Not found
npm ERR! 404
npm ERR! 404 '@sindresorhus/is@^0.14.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'got'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
As of npm@5,
the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid.
If you want to make sure everything is consistent, use 'npm cache verify' instead.
...after npm cache verify I was able to install 👍
Reacted by Yuri Mikushov, moaaz i. alomary and Milton Davila
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
I got this output after typing the command "npm install --global surge".
I tried "npm cache verify" like some of you did, but for me it doesn't solve the problem I again get these outputs.
Can someone help me?
Yeoman Doctor
Running sanity checks on your system
✔ No .bowerrc file in home directory
✔ Global configuration file is valid
✖ NODE_PATH matches the npm root
Unable to find the npm root, something went wrong.
Try to execute npm -g root --silent on your command-line
✔ No .yo-rc.json file in home directory
✔ Node.js version
{ Error: Couldn't find the 'yo' binary. Make sure it's installed and in your $PATH
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn yo',
path: 'yo',
spawnargs: [ '--version' ],
cmd: 'yo --version' }
✖ yo version
{ Error: Couldn't find the 'yo' binary. Make sure it's installed and in your $PATH
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn yo',
path: 'yo',
spawnargs: [ '--version' ],
cmd: 'yo --version' }
✔ npm version
request is going to be completely removed in the next breaking change.
Reacted by Mateusz Kwieciński, Anselm, Nicolò Maria Semprini, Naoki Ikeguchi, Thaina, sakamossan, Jimmy Wärting, Jimmie Tyrrell and Wilfred van der Deijl
It seems, while removing deprecated packages, uuid is an easy update as well as debug.
These warnings have been hanging around too long. They give SecOps teams heartburn.
❯ npm -g install [email protected]
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: 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 [email protected]: 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 [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
Reacted by Nicolò Maria Semprini, James Moynihan, yoneGrit, Thaina, Ali Ebrahim, Mike Senn, Jimmie Tyrrell and almogtovim
This is on our radar, and we've stopped using this dependency almost everywhere in the codebase. However, the functions:shell command, which provides a REPL for testing out your functions, exposes request as part of its public API, so we cannot easily remove request without making a breaking change. Next time we release a major version, we plan to make this change & remove request - however, for now, hold tight and rest assured that this package is minimally used in firebase-tools
Reacted by Bogac Guven, Daniel Hampton, Mike Senn, Gwangyoung Choi and Simen Heggestøyl
There's now a moderate security issue on the deprecated request package, which I assume will never be fixed. Is there a timeline for removing the last remaining request package usage?
request is only used in functions:shell any more. Changing the interface there is non-trivial, since it exposed request's interface. But, nowhere else in the code do we use request. We're aware of the warning and are trying to prioritize fixing functions:shell, but don't have an ETA to share yet.
changed the title [-]npm WARN deprecated [email protected]: request has been deprecated[/-][+]Refactor `functions:shell` to not use request[/+]on Oct 20, 2023
changed the title [-]Refactor `functions:shell` to not use request[/-][+][v13.0.0 Blocker] Refactor `functions:shell` to not use request[/+]on Oct 20, 2023
Activity
samtstern commentedon May 6, 2020
@sadhon thanks for reporting this! The
requestmodule is one of the most popular libraries in the whole ecosystem so the deprecation has hit almost everyone, including us.@bkendall is already working on removing
requestfromfirebase-tools.Right now you do not need to worry about this, it's not a security vulnerability and we expect it to be fixed in a future version.
bogacg commentedon Aug 6, 2020
Today
[email protected]installation is aborted due to this issue.samtstern commentedon Aug 6, 2020
@bogacg can you show logs from an aborted install?
bogacg commentedon Aug 6, 2020
@samtstern I re-executed global install command and sorry, that one is a WARN, problem is
@sindresorhus%2fisYou need full log?
samtstern commentedon Aug 6, 2020
That's a global ongoing
npmissue today, please see:https://status.npmjs.org/incidents/cksjqc1w11v5
AkhileshHN commentedon Aug 6, 2020
The issue is still not resolved
I'm tried almost 100 times still same error unable to install firebase-tools
bkendall commentedon Aug 6, 2020
You may need to run
npm cache cleanto clear out any bad URLs you an into during the outage (untested, but that would be what I would do)bogacg commentedon Aug 7, 2020
...after
npm cache verifyI was able to install 👍67joseph commentedon Aug 10, 2020
Yes thanks bogacg
npm cache verifyworked wellmanojmadhu commentedon Aug 24, 2020
Yes, its worked after
npm cache verify. Thank you very much.moodstudioseva commentedon Feb 8, 2021
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
I got this output after typing the command "npm install --global surge".
I tried "npm cache verify" like some of you did, but for me it doesn't solve the problem I again get these outputs.
Can someone help me?
poojabhargava30 commentedon Feb 17, 2021
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
/home/ubuntu/npm/bin/yo -> /home/ubuntu/npm/lib/node_modules/yo/lib/cli.js
/home/ubuntu/npm/bin/yo-complete -> /home/ubuntu/npm/lib/node_modules/yo/lib/completion/index.js
Yeoman Doctor
Running sanity checks on your system
✔ No .bowerrc file in home directory
✔ Global configuration file is valid
✖ NODE_PATH matches the npm root
Unable to find the npm root, something went wrong.
Try to execute npm -g root --silent on your command-line
✔ No .yo-rc.json file in home directory
✔ Node.js version
{ Error: Couldn't find the 'yo' binary. Make sure it's installed and in your $PATH
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn yo',
path: 'yo',
spawnargs: [ '--version' ],
cmd: 'yo --version' }
✖ yo version
{ Error: Couldn't find the 'yo' binary. Make sure it's installed and in your $PATH
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn yo',
path: 'yo',
spawnargs: [ '--version' ],
cmd: 'yo --version' }
✔ npm version
Found potential issues on your machine :(
updated 1 package in 18.362s
### please help me with this error
satyaprasad317 commentedon Mar 1, 2021
Any one have resolution for this.
7 remaining items
akauppi commentedon Jun 23, 2022
Voting for
undicisince the Node implementation is using it.bkendall commentedon Jun 27, 2022
requestis going to be completely removed in the next breaking change.Brian-McBride commentedon Jul 8, 2022
It seems, while removing deprecated packages, uuid is an easy update as well as debug.
These warnings have been hanging around too long. They give SecOps teams heartburn.
joehan commentedon Mar 14, 2023
Update on this:
This is on our radar, and we've stopped using this dependency almost everywhere in the codebase. However, the functions:shell command, which provides a REPL for testing out your functions, exposes request as part of its public API, so we cannot easily remove
requestwithout making a breaking change. Next time we release a major version, we plan to make this change & removerequest- however, for now, hold tight and rest assured that this package is minimally used in firebase-toolsbrianwestphal commentedon May 22, 2023
There's now a moderate security issue on the deprecated request package, which I assume will never be fixed. Is there a timeline for removing the last remaining request package usage?
gr8kev commentedon Jun 30, 2023
I have the same issue .
What is the solution please
bkendall commentedon Jun 30, 2023
requestis only used infunctions:shellany more. Changing the interface there is non-trivial, since it exposedrequest's interface. But, nowhere else in the code do we userequest. We're aware of the warning and are trying to prioritize fixingfunctions:shell, but don't have an ETA to share yet.KuSh commentedon Jul 11, 2023
request is affected by 2 vulnerabilities :
[-]npm WARN deprecated [email protected]: request has been deprecated[/-][+]Refactor `functions:shell` to not use request[/+][-]Refactor `functions:shell` to not use request[/-][+][v13.0.0 Blocker] Refactor `functions:shell` to not use request[/+]