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
should not ask for the package manager
#1936
Comments
If you want to pass flags when using
Otherwise That isn't related with nestjs cli. |
Have you tried this command? It seems like it does not solve the above issue, I'm still getting the prompt telling me to choose a package manager even though I copied your command in my shell (Bash). Also woth mentionning that it does work if I specify the package manager as follow. npx @nestjs/cli new app --skip-install --package-manager npm But this should not be needed when running with |
oh, got it now, my bad. But we can't change that. Even tho no installing will be made, the CLI still need to prompt you that info because the generated To recap:
|
I see, that makes sense if the documentation needs it. I'll check out the PR you linked. Thank you! |
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
Currently, when generating a project using
@nestjs/cli
with the option--skip-install
, the installation still asks for a package manager to choose even though no installation is made.I would rather expect the installation to not ask for any package manager if I decide to skip the installation of dependencies when scaffolding a new project.
Describe the solution you'd like
When scaffolding a new Nest.js project using the
@nestjs/cli
package, the--skip-install
option should prevent the installation from asking for choosing a package manager.Teachability, documentation, adoption, migration strategy
Users would be able to run the following command
And get the expected behavior, which would be not to ask for a package manager.
What is the motivation / use case for changing the behavior?
The
--skip-install
option is not intuitive in its behavior, and this would help beginners have a more obvious understanding of the cli and also give theI don't know the cli but I'm able to get a good grasp at it
feeling without inconsistencies.The text was updated successfully, but these errors were encountered: