You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Report: Unable to Create Vite Project without Answering CLI Questions
Description:
I am attempting to create a new Vite project using the provided example commands and passing all the necessary parameters, as mentioned in the documentation. However, I am encountering an issue where the CLI prompts me for additional information despite passing the required parameters.
Open PowerShell.
Execute the following command: npm create vite@latest my-vue-app -- --template vue
Observe the CLI prompts that appear, even though all parameters have been passed.
Expected Behavior:
I expected the Vite project creation process to proceed without any prompts or questions, as I passed all the necessary parameters while following the example commands and the documentation.
Actual Behavior:
Instead of creating the project directly, the CLI prompts me for additional information. This behavior is inconsistent with the documentation and the expected behavior. I have attached screenshots of the prompts that appear despite passing the parameters.
Screenshots:
Additional Information:
I have attempted different variations of the commands, but I consistently encounter the same problem. This issue prevents me from creating a new Vite project without manual intervention during the CLI process.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
Bug Report: Unable to Create Vite Project without Answering CLI Questions
Description:
I am attempting to create a new Vite project using the provided example commands and passing all the necessary parameters, as mentioned in the documentation. However, I am encountering an issue where the CLI prompts me for additional information despite passing the required parameters.
Environment:
Version: create-vite 4.3.2
Operating System: Windows 10 10.0.19045
npm version: 9.7.1
node version: v18.16.0
PowerShell: PowerShell 7.4.0-preview.3
Reproduction Steps:
Open PowerShell.
Execute the following command:
npm create vite@latest my-vue-app -- --template vue
Observe the CLI prompts that appear, even though all parameters have been passed.
Expected Behavior:
I expected the Vite project creation process to proceed without any prompts or questions, as I passed all the necessary parameters while following the example commands and the documentation.
Actual Behavior:
Instead of creating the project directly, the CLI prompts me for additional information. This behavior is inconsistent with the documentation and the expected behavior. I have attached screenshots of the prompts that appear despite passing the parameters.
Screenshots:



Additional Information:
I have attempted different variations of the commands, but I consistently encounter the same problem. This issue prevents me from creating a new Vite project without manual intervention during the CLI process.
Reproduction
https://vitejs.dev/guide/
Steps to reproduce
`PowerShell 7.4.0-preview.3
PS C:\Users\winuser\Desktop> npm create vite@latest my-vue-app -- --template vue
× Select a framework: » Vanilla
✖ Operation cancelled
PS C:\Users\winuser\Desktop> npm create vite@latest my-vue-app -- --template vue
? Select a framework: » - Use arrow-keys. Return to submit.
`PS C:\Users\winuser\Desktop\linkr-ts-front> ls
PS C:\Users\winuser\Desktop\linkr-ts-front> npm create vite@latest . -- --template react-ts
? Select a framework: » - Use arrow-keys. Return to submit.
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: