Skip to content

Please remove or update deprecated dependencies: inflight@1.0.6, rimraf@3.0.2, glob@7.2.3 #57550

@VBobCat

Description

@VBobCat

Which @angular/* package(s) are the source of the bug?

compiler-cli

Is this a regression?

No

Description

npm warns about those deprecated dependencies right after installing the lates version of Angular with ng new, as reproduced below:

npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

F:\angular>ng new test-deprecations
? Which stylesheet format would you like to use? Sass (SCSS)     [ https://sass-lang.com/documentation/syntax#scss                ]
? Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? no
CREATE test-deprecations/angular.json (2910 bytes)
CREATE test-deprecations/package.json (1087 bytes)
CREATE test-deprecations/README.md (1104 bytes)
CREATE test-deprecations/tsconfig.json (1045 bytes)
CREATE test-deprecations/.editorconfig (290 bytes)
CREATE test-deprecations/.gitignore (629 bytes)
CREATE test-deprecations/tsconfig.app.json (439 bytes)
CREATE test-deprecations/tsconfig.spec.json (449 bytes)
CREATE test-deprecations/.vscode/extensions.json (134 bytes)
CREATE test-deprecations/.vscode/launch.json (490 bytes)
CREATE test-deprecations/.vscode/tasks.json (980 bytes)
CREATE test-deprecations/src/main.ts (256 bytes)
CREATE test-deprecations/src/index.html (315 bytes)
CREATE test-deprecations/src/styles.scss (81 bytes)
CREATE test-deprecations/src/app/app.component.html (20239 bytes)
CREATE test-deprecations/src/app/app.component.spec.ts (978 bytes)
CREATE test-deprecations/src/app/app.component.ts (327 bytes)
CREATE test-deprecations/src/app/app.component.scss (0 bytes)
CREATE test-deprecations/src/app/app.config.ts (318 bytes)
CREATE test-deprecations/src/app/app.routes.ts (80 bytes)
CREATE test-deprecations/public/favicon.ico (15086 bytes)
✔ Packages installed successfully.
warning: in the working copy of '.editorconfig', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of '.gitignore', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of '.vscode/extensions.json', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of '.vscode/launch.json', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of '.vscode/tasks.json', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'README.md', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'angular.json', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'package-lock.json', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'package.json', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'src/app/app.component.html', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'src/app/app.component.spec.ts', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'src/app/app.component.ts', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'src/app/app.config.ts', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'src/app/app.routes.ts', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'src/index.html', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'src/main.ts', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'src/styles.scss', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'tsconfig.app.json', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'tsconfig.json', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'tsconfig.spec.json', CRLF will be replaced by LF the next time Git touches it
    Successfully initialized git.

F:\angular>cd test-deprecations

F:\angular\test-deprecations>rd /s /q node_modules

F:\angular\test-deprecations>npm i
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported

added 968 packages, and audited 969 packages in 59s

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

found 0 vulnerabilities

Please provide the environment you discovered this bug in (run ng version)

F:\angular\test-deprecations>ng v

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 18.2.1
Node: 20.17.0
Package Manager: npm 10.8.2
OS: win32 x64

Angular: 18.2.1
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1802.1
@angular-devkit/build-angular   18.2.1
@angular-devkit/core            18.2.1
@angular-devkit/schematics      18.2.1
@schematics/angular             18.2.1
rxjs                            7.8.1
typescript                      5.5.4
zone.js                         0.14.10

Anything else?

F:\angular\test-deprecations>npm explain inflight rimraf glob
inflight@1.0.6 dev
node_modules/inflight
  inflight@"^1.0.4" from glob@7.2.3 dev
  node_modules/glob
    glob@"^7.1.7" from karma@6.4.4
    node_modules/karma
      dev karma@"~6.4.0" from the root project
      peerOptional karma@"^6.3.0" from @angular-devkit/build-angular@18.2.1
      node_modules/@angular-devkit/build-angular
        dev @angular-devkit/build-angular@"^18.2.1" from the root project
      peer karma@"^6.0.0" from karma-jasmine@5.1.0
      node_modules/karma-jasmine
        dev karma-jasmine@"~5.1.0" from the root project
        peer karma-jasmine@"^5.0.0" from karma-jasmine-html-reporter@2.1.0
        node_modules/karma-jasmine-html-reporter
          dev karma-jasmine-html-reporter@"~2.1.0" from the root project
      peer karma@"^6.0.0" from karma-jasmine-html-reporter@2.1.0
      node_modules/karma-jasmine-html-reporter
        dev karma-jasmine-html-reporter@"~2.1.0" from the root project
    glob@"^7.1.3" from rimraf@3.0.2 dev
    node_modules/rimraf
      rimraf@"^3.0.2" from karma@6.4.4
      node_modules/karma
        dev karma@"~6.4.0" from the root project
        peerOptional karma@"^6.3.0" from @angular-devkit/build-angular@18.2.1
        node_modules/@angular-devkit/build-angular
          dev @angular-devkit/build-angular@"^18.2.1" from the root project
        peer karma@"^6.0.0" from karma-jasmine@5.1.0
        node_modules/karma-jasmine
          dev karma-jasmine@"~5.1.0" from the root project
          peer karma-jasmine@"^5.0.0" from karma-jasmine-html-reporter@2.1.0
          node_modules/karma-jasmine-html-reporter
            dev karma-jasmine-html-reporter@"~2.1.0" from the root project
        peer karma@"^6.0.0" from karma-jasmine-html-reporter@2.1.0
        node_modules/karma-jasmine-html-reporter
          dev karma-jasmine-html-reporter@"~2.1.0" from the root project

rimraf@3.0.2 dev
node_modules/rimraf
  rimraf@"^3.0.2" from karma@6.4.4
  node_modules/karma
    dev karma@"~6.4.0" from the root project
    peerOptional karma@"^6.3.0" from @angular-devkit/build-angular@18.2.1
    node_modules/@angular-devkit/build-angular
      dev @angular-devkit/build-angular@"^18.2.1" from the root project
    peer karma@"^6.0.0" from karma-jasmine@5.1.0
    node_modules/karma-jasmine
      dev karma-jasmine@"~5.1.0" from the root project
      peer karma-jasmine@"^5.0.0" from karma-jasmine-html-reporter@2.1.0
      node_modules/karma-jasmine-html-reporter
        dev karma-jasmine-html-reporter@"~2.1.0" from the root project
    peer karma@"^6.0.0" from karma-jasmine-html-reporter@2.1.0
    node_modules/karma-jasmine-html-reporter
      dev karma-jasmine-html-reporter@"~2.1.0" from the root project

rimraf@5.0.10 dev
node_modules/webpack-dev-server/node_modules/rimraf
  rimraf@"^5.0.5" from webpack-dev-server@5.0.4
  node_modules/webpack-dev-server
    webpack-dev-server@"5.0.4" from @angular-devkit/build-angular@18.2.1
    node_modules/@angular-devkit/build-angular
      dev @angular-devkit/build-angular@"^18.2.1" from the root project
    peer webpack-dev-server@"^5.0.2" from @angular-devkit/build-webpack@0.1802.1
    node_modules/@angular-devkit/build-webpack
      @angular-devkit/build-webpack@"0.1802.1" from @angular-devkit/build-angular@18.2.1
      node_modules/@angular-devkit/build-angular
        dev @angular-devkit/build-angular@"^18.2.1" from the root project

glob@10.4.5 dev
node_modules/@npmcli/package-json/node_modules/glob
  glob@"^10.2.2" from @npmcli/package-json@5.2.0
  node_modules/@npmcli/package-json
    @npmcli/package-json@"^5.0.0" from @npmcli/run-script@8.1.0
    node_modules/@npmcli/run-script
      @npmcli/run-script@"^8.0.0" from pacote@18.0.6
      node_modules/pacote
        pacote@"18.0.6" from @angular/cli@18.2.1
        node_modules/@angular/cli
          dev @angular/cli@"^18.2.1" from the root project
    @npmcli/package-json@"^5.1.0" from pacote@18.0.6
    node_modules/pacote
      pacote@"18.0.6" from @angular/cli@18.2.1
      node_modules/@angular/cli
        dev @angular/cli@"^18.2.1" from the root project

glob@10.4.5 dev
node_modules/cacache/node_modules/glob
  glob@"^10.2.2" from cacache@18.0.4
  node_modules/cacache
    cacache@"^18.0.0" from make-fetch-happen@13.0.1
    node_modules/make-fetch-happen
      make-fetch-happen@"^13.0.1" from @sigstore/sign@2.3.2
      node_modules/@sigstore/sign
        @sigstore/sign@"^2.3.2" from sigstore@2.3.1
        node_modules/sigstore
          sigstore@"^2.2.0" from pacote@18.0.6
          node_modules/pacote
            pacote@"18.0.6" from @angular/cli@18.2.1
            node_modules/@angular/cli
              dev @angular/cli@"^18.2.1" from the root project
      make-fetch-happen@"^13.0.0" from node-gyp@10.2.0
      node_modules/node-gyp
        node-gyp@"^10.0.0" from @npmcli/run-script@8.1.0
        node_modules/@npmcli/run-script
          @npmcli/run-script@"^8.0.0" from pacote@18.0.6
          node_modules/pacote
            pacote@"18.0.6" from @angular/cli@18.2.1
            node_modules/@angular/cli
              dev @angular/cli@"^18.2.1" from the root project
      make-fetch-happen@"^13.0.0" from npm-registry-fetch@17.1.0
      node_modules/npm-registry-fetch
        npm-registry-fetch@"^17.0.0" from pacote@18.0.6
        node_modules/pacote
          pacote@"18.0.6" from @angular/cli@18.2.1
          node_modules/@angular/cli
            dev @angular/cli@"^18.2.1" from the root project
      make-fetch-happen@"^13.0.1" from tuf-js@2.2.1
      node_modules/tuf-js
        tuf-js@"^2.2.1" from @sigstore/tuf@2.3.4
        node_modules/@sigstore/tuf
          @sigstore/tuf@"^2.3.4" from sigstore@2.3.1
          node_modules/sigstore
            sigstore@"^2.2.0" from pacote@18.0.6
            node_modules/pacote
              pacote@"18.0.6" from @angular/cli@18.2.1
              node_modules/@angular/cli
                dev @angular/cli@"^18.2.1" from the root project
    cacache@"^18.0.0" from pacote@18.0.6
    node_modules/pacote
      pacote@"18.0.6" from @angular/cli@18.2.1
      node_modules/@angular/cli
        dev @angular/cli@"^18.2.1" from the root project

glob@7.2.3 dev
node_modules/glob
  glob@"^7.1.7" from karma@6.4.4
  node_modules/karma
    dev karma@"~6.4.0" from the root project
    peerOptional karma@"^6.3.0" from @angular-devkit/build-angular@18.2.1
    node_modules/@angular-devkit/build-angular
      dev @angular-devkit/build-angular@"^18.2.1" from the root project
    peer karma@"^6.0.0" from karma-jasmine@5.1.0
    node_modules/karma-jasmine
      dev karma-jasmine@"~5.1.0" from the root project
      peer karma-jasmine@"^5.0.0" from karma-jasmine-html-reporter@2.1.0
      node_modules/karma-jasmine-html-reporter
        dev karma-jasmine-html-reporter@"~2.1.0" from the root project
    peer karma@"^6.0.0" from karma-jasmine-html-reporter@2.1.0
    node_modules/karma-jasmine-html-reporter
      dev karma-jasmine-html-reporter@"~2.1.0" from the root project
  glob@"^7.1.3" from rimraf@3.0.2 dev
  node_modules/rimraf
    rimraf@"^3.0.2" from karma@6.4.4
    node_modules/karma
      dev karma@"~6.4.0" from the root project
      peerOptional karma@"^6.3.0" from @angular-devkit/build-angular@18.2.1
      node_modules/@angular-devkit/build-angular
        dev @angular-devkit/build-angular@"^18.2.1" from the root project
      peer karma@"^6.0.0" from karma-jasmine@5.1.0
      node_modules/karma-jasmine
        dev karma-jasmine@"~5.1.0" from the root project
        peer karma-jasmine@"^5.0.0" from karma-jasmine-html-reporter@2.1.0
        node_modules/karma-jasmine-html-reporter
          dev karma-jasmine-html-reporter@"~2.1.0" from the root project
      peer karma@"^6.0.0" from karma-jasmine-html-reporter@2.1.0
      node_modules/karma-jasmine-html-reporter
        dev karma-jasmine-html-reporter@"~2.1.0" from the root project

glob@10.4.5 dev
node_modules/node-gyp/node_modules/glob
  glob@"^10.3.10" from node-gyp@10.2.0
  node_modules/node-gyp
    node-gyp@"^10.0.0" from @npmcli/run-script@8.1.0
    node_modules/@npmcli/run-script
      @npmcli/run-script@"^8.0.0" from pacote@18.0.6
      node_modules/pacote
        pacote@"18.0.6" from @angular/cli@18.2.1
        node_modules/@angular/cli
          dev @angular/cli@"^18.2.1" from the root project

glob@10.4.5 dev
node_modules/webpack-dev-server/node_modules/glob
  glob@"^10.3.7" from rimraf@5.0.10 dev
  node_modules/webpack-dev-server/node_modules/rimraf
    rimraf@"^5.0.5" from webpack-dev-server@5.0.4
    node_modules/webpack-dev-server
      webpack-dev-server@"5.0.4" from @angular-devkit/build-angular@18.2.1
      node_modules/@angular-devkit/build-angular
        dev @angular-devkit/build-angular@"^18.2.1" from the root project
      peer webpack-dev-server@"^5.0.2" from @angular-devkit/build-webpack@0.1802.1
      node_modules/@angular-devkit/build-webpack
        @angular-devkit/build-webpack@"0.1802.1" from @angular-devkit/build-angular@18.2.1
        node_modules/@angular-devkit/build-angular
          dev @angular-devkit/build-angular@"^18.2.1" from the root project

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions