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

[FEAT]: Use the appropriate package manager by default when using @angular to install #23617

Closed
1 of 15 tasks
brandonroberts opened this issue Jul 21, 2022 · 4 comments · Fixed by #23629
Closed
1 of 15 tasks
Labels
area: angular/create feature: votes required Feature request which is currently still in the voting phase feature Issue that requests a new feature

Comments

@brandonroberts
Copy link
Contributor

🚀 Feature request

Command (mark with an x)

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

Description

A clear and concise description of the problem or missing capability...

When using yarn create @angular to scaffold a new application, it still uses npm to install dependencies.

Describe the solution you'd like

If you have a solution in mind, please describe it.

When using a different package manager` to scaffold a new application, it should use the package manager used to initiate the command.

npm init @angular - npm
yarn create @angular - yarn
pnpm create @angular - pnpm (if pnpm works?)

Describe alternatives you've considered

Have you considered any alternative solutions or workarounds?

The alternative command works

yarn create @angular -- --package-manager yarn
@alan-agius4
Copy link
Collaborator

Love the idea @brandonroberts.

@angular-robot angular-robot bot added the feature: votes required Feature request which is currently still in the voting phase label Jul 22, 2022
@angular-robot
Copy link
Contributor

angular-robot bot commented Jul 22, 2022

This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.

You can find more details about the feature request process in our documentation.

alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Jul 22, 2022
…ndencies

Previously, NPM was always used to install dependencies even when using `yarn create` or `pnpm create`.

Closes angular#23617
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Jul 22, 2022
…ndencies

Previously, NPM was always used to install dependencies even when using `yarn create` or `pnpm create`.

Closes angular#23617
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Jul 22, 2022
…ndencies

Previously, NPM was always used to install dependencies even when using `yarn create` or `pnpm create`.

Closes angular#23617
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Jul 22, 2022
…ndencies

Previously, NPM was always used to install dependencies even when using `yarn create` or `pnpm create`.

Closes angular#23617
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Jul 22, 2022
…ndencies

Previously, NPM was always used to install dependencies even when using `yarn create` or `pnpm create`.

Closes angular#23617
clydin pushed a commit that referenced this issue Jul 22, 2022
…ndencies

Previously, NPM was always used to install dependencies even when using `yarn create` or `pnpm create`.

Closes #23617

(cherry picked from commit f93de80)
@clydin clydin closed this as completed in f93de80 Jul 22, 2022
@brandonroberts
Copy link
Contributor Author

Awesome!

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: angular/create feature: votes required Feature request which is currently still in the voting phase feature Issue that requests a new feature
Projects
None yet
2 participants