How to fix "npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142" error in Windows 10?

13,877

I had the same message installing node unirest module on Ubuntu 20.04 but when I ran the command a second time the warning was no longer displayed.

First time with warning:

user@server:~/project$ npm install -S unirest
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

added 55 packages, and audited 57 packages in 2s

2 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Second time without warning:

user@server:~/project$ npm install -S unirest

up to date, audited 59 packages in 617ms

2 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
Share:
13,877
vishnu
Author by

vishnu

Updated on June 06, 2022

Comments

  • vishnu
    vishnu almost 2 years

    I'm using Windows 10. I want to use Angular 4 on my system. When I run node -v and npm -v it displays the version. But when I execute the statement npm install -g @angular/cli, i gives :

    npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142C:\Users\VAISHU\AppData\Roaming\npm\ng -> C:\Users\VAISHU\AppData\Roaming\npm\node_modules\@angular\cli\bin\ng
    
    > @angular/[email protected] postinstall C:\Users\VAISHU\AppData\Roaming\npm\node_modules\@angular\cli
    > node ./bin/postinstall/script.js
    
    + @angular/[email protected]
    updated 1 package in 15.317s
    

    when I enter the command ng -v, it shows :

    Available Commands:
      add Adds support for an external library to your project.
      analytics Configures the gathering of Angular CLI usage metrics. See https://angular.io/cli/usage-analytics-gathering.
      build (b) Compiles an Angular app into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.
      deploy Invokes the deploy builder for a specified project or for the default project in the workspace.
      config Retrieves or sets Angular configuration values in the angular.json file for the workspace.
      doc (d) Opens the official Angular documentation (angular.io) in a browser, and searches for a given keyword.
      e2e (e) Builds and serves an Angular app, then runs end-to-end tests using Protractor.
      generate (g) Generates and/or modifies files based on a schematic.
      help Lists available commands and their short descriptions.
      lint (l) Runs linting tools on Angular app code in a given project folder.
      new (n) Creates a new workspace and an initial Angular app.
      run Runs an Architect target with an optional custom builder configuration defined in your project.
      serve (s) Builds and serves your app, rebuilding on file changes.
      test (t) Runs unit tests in a project.
      update Updates your application and its dependencies. See https://update.angular.io/
      version (v) Outputs Angular CLI version.
      xi18n (i18n-extract) Extracts i18n messages from source code.
    
    For more detailed help run "ng [command name] --help"
    

    I don't know whether I have to uninstall Node js, and install again. Please suggest any solution. Thank You.