Bob
Suppress 'would you like to install any of the official modules' when using npx nuxi@latest init
I am attempting to create a Windows command file to be run unattended that creates a standard, empty Nuxt 3 project.
When I use this syntax I get the new feature that displays a list of official modules to select from:
npx nuxi@latest init acsw-mp-lite --packageManager npm --gitInit false
I don't want to see this list or pick from it because I install my modules separately, how can I suppress this option?
Failing a way to suppress this list, what command would I use to install a standard module such as eslint to avoid the problem?
For the latter so far I have tried these but neither works:
npx nuxi@latest init acsw-mp-lite --packageManager npm --gitInit false --modules 'eslint'
and
npx nuxi@latest init acsw-mp-lite --packageManager npm --gitInit false --modules '@nuxt/eslint'
Note: I can suppress the list by using '--preferOffline' but this is just a fudge
I have had a look at the official doco but can't seem to find an answer.
What are my options please?
4 replies