Skip to content

ng new fails due to @babel/traverse #20583

Closed
@jtneal

Description

@jtneal

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, it worked yesterday with 11.2.9 but today it does not using the same version.

Description

A clear and concise description of the problem...

🔬 Minimal Reproduction

docker run --rm -it node:lts bash
npm install -g @angular/cli
ng new test --strict --routing --style scss

🔥 Exception or Error

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @babel/traverse@^7.13.17.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of '@babel/helpers'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-04-21T02_07_30_591Z-debug.log
✖ Package install failed, see above.
The Schematic workflow failed. See above.

The error would make you think maybe a version of this package was removed from the node repository. However, when I checked it still seems to be there, and if I try to install it alone, it works just fine:

npm install @babel/traverse@^7.13.17

+ @babel/traverse@7.13.17
added 25 packages from 46 contributors and audited 25 packages in 2.078s
found 0 vulnerabilities

🌍 Your Environment





Anything else relevant?

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