Skip to content

init doesn't give a good error message when it fails #29712

Closed
@sixcorners

Description

@sixcorners

Command

new

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

I'm trying to make a new angular project but idk why it fails.

Minimal Reproduction

$ npx @angular/cli@latest new test --style=sass --ssr=false
CREATE test/README.md (1467 bytes)
CREATE test/.editorconfig (314 bytes)
CREATE test/.gitignore (587 bytes)
CREATE test/angular.json (2756 bytes)
CREATE test/package.json (1035 bytes)
CREATE test/tsconfig.json (915 bytes)
CREATE test/tsconfig.app.json (424 bytes)
CREATE test/tsconfig.spec.json (434 bytes)
CREATE test/.vscode/extensions.json (130 bytes)
CREATE test/.vscode/launch.json (470 bytes)
CREATE test/.vscode/tasks.json (938 bytes)
CREATE test/src/main.ts (250 bytes)
CREATE test/src/index.html (290 bytes)
CREATE test/src/styles.sass (80 bytes)
CREATE test/src/app/app.component.sass (0 bytes)
CREATE test/src/app/app.component.html (19903 bytes)
CREATE test/src/app/app.component.spec.ts (910 bytes)
CREATE test/src/app/app.component.ts (281 bytes)
CREATE test/src/app/app.config.ts (310 bytes)
CREATE test/src/app/app.routes.ts (77 bytes)
CREATE test/public/favicon.ico (15086 bytes)
✖ Package install failed, see above.
The Schematic workflow failed. See above.

Exception or Error

✖ Package install failed, see above.
The Schematic workflow failed. See above.

Your Environment

$ npx @angular/cli@latest version

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

Angular CLI: 19.1.8
Node: 20.18.3
Package Manager: npm 
OS: linux x64

Angular: 
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1901.8 (cli-only)
@angular-devkit/core         19.1.8 (cli-only)
@angular-devkit/schematics   19.1.8 (cli-only)
@schematics/angular          19.1.8 (cli-only)

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions