Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--skip-install is ignored when creating a new app with --ssr #27631

Closed
KevTale opened this issue May 11, 2024 · 1 comment
Closed

--skip-install is ignored when creating a new app with --ssr #27631

KevTale opened this issue May 11, 2024 · 1 comment

Comments

@KevTale
Copy link

KevTale commented May 11, 2024

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

Don't known / other

Is this a regression?

No

Description

This is a very specific situation but if you try to generate a new app (with --ssr --skip-install) inside an existing workspace, the --skip-install will be by-passed and it will still install the deps.

To reproduce:

  1. run npx @angular/cli@latest new myorg --skip-install (with or without --create-application=false, it doesn't matter)
  2. run ng generate app my-app --ssr --skip-install

It will still install the deps.

edit: the issue doesn't happen if on 2. I run npx @angular/cli@latest generate app my-app --ssr --skip-install.
I just noticed that when running ng generate ... I got a warning

Package dependency "@angular/ssr" already exists with a different specifier. "^17.3.7" will be replaced with "^17.0.0".
@JeanMeche JeanMeche transferred this issue from angular/angular May 11, 2024
@alan-agius4
Copy link
Collaborator

Thanks for reporting this issue. Luckily, it has already been fixed in one of the recent releases. Please update the global version of the Angulaer CLI to the most recent version by using npm i @angular/cli -g to resolve the problem.

@alan-agius4 alan-agius4 closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants