Skip to content

[v13.0.0 Blocker] Refactor functions:shell to not use request #2215

Closed

Description

@sadhon

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.

Activity

  1. samtstern commented on May 6, 2020

    @samtstern
    Contributor

    @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.

  2. bogacg commented on Aug 6, 2020

    @bogacg

    Today [email protected] installation is aborted due to this issue.

  3. samtstern commented on Aug 6, 2020

    @samtstern
    Contributor

    @bogacg can you show logs from an aborted install?

  4. bogacg commented on Aug 6, 2020

    @bogacg

    @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:
    

    You need full log?

  5. samtstern commented on Aug 6, 2020

    @samtstern
    Contributor
  6. AkhileshHN commented on Aug 6, 2020

    @AkhileshHN

    The issue is still not resolved
    I'm tried almost 100 times still same error unable to install firebase-tools

  7. bkendall commented on Aug 6, 2020

    @bkendall
    Contributor

    You may need to run npm cache clean to clear out any bad URLs you an into during the outage (untested, but that would be what I would do)

  8. bogacg commented on Aug 7, 2020

    @bogacg
    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 👍

  9. 67joseph commented on Aug 10, 2020

    @67joseph

    Yes thanks bogacg npm cache verify worked well

  10. manojmadhu commented on Aug 24, 2020

    @manojmadhu

    Yes, its worked after npm cache verify . Thank you very much.

  11. added
    cleanup: request
    on Nov 10, 2020
  12. moodstudioseva commented on Feb 8, 2021

    @moodstudioseva

    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?

  13. poojabhargava30 commented on Feb 17, 2021

    @poojabhargava30

    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

    [email protected] postinstall /home/ubuntu/npm/lib/node_modules/yo
    yodoctor

    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 :(

    ### please help me with this error

  14. satyaprasad317 commented on Mar 1, 2021

    @satyaprasad317

    Any one have resolution for this.

  15. 7 remaining items

  16. akauppi commented on Jun 23, 2022

    @akauppi

    Voting for undici since the Node implementation is using it.

  17. added this to the v12 Breaking Changes milestone on Jun 27, 2022
  18. bkendall commented on Jun 27, 2022

    @bkendall
    Contributor

    request is going to be completely removed in the next breaking change.

  19. Brian-McBride commented on Jul 8, 2022

    @Brian-McBride

    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
  20. joehan commented on Mar 14, 2023

    @joehan
    Member

    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 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

  21. brianwestphal commented on May 22, 2023

    @brianwestphal

    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?

  22. gr8kev commented on Jun 30, 2023

    @gr8kev

    I have the same issue .
    What is the solution please

  23. bkendall commented on Jun 30, 2023

    @bkendall
    Contributor

    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.

  24. KuSh commented on Jul 11, 2023

    @KuSh

    request is affected by 2 vulnerabilities :

  25. self-assigned this
    on Oct 20, 2023
  26. changed the title [-]npm WARN deprecated [email protected]: request has been deprecated[/-] [+]Refactor `functions:shell` to not use request[/+] on Oct 20, 2023
  27. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cleanup: requesthelp-wanted

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions