I'm attempting to create a basic Nuxt app using the following:
npx nuxi@latest init my-project --packageManager npm --gitInit false --force
I'm using npx to automate the setup of the project so I don't have to stop and answer any prompts unfortunately I can't get rid of the prompt 'would you like to install any of the official modules'.
I don't want to install any modules, I just want to scaffold a bare bones Nuxt app and add specific modules later.
I've read the npx documentation but I can't find a way to suppress this prompt, has anyone else had this issue and if so what did you do to avoid it ?
Edit: I'm using Windows
There is a --modules
flag you can use with the init command. When this argument is used the prompt will be skipped.
For example: npx nuxi@latest init my-project --packageManager npm --gitInit false --force --modules '@nuxt/fonts'
Unfortunately, it seems you must pass it at least one module. If there's an empty string the prompt will be triggered. Is there at least one module you use? Or perhaps you could specify one here and remove it later. Not a perfect solution I know.