Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5962

How to auto answer the "npm init -y vue"

$
0
0

I want to run "npm init -y vue" in bash script, and make everything auto answer without any manually input.

I found this link with setting the default values in npm init but it is not enough:https://dev.to/atapas/tips-to-customize-npm-init-to-make-it-your-own-253h

When running:

# npm init -y vue

The following prompts will ask "No/Yes", and manually hit enter to "No" by default:

Vue.js - The Progressive JavaScript Framework✔ Project name: … vue-project✔ Add TypeScript? … No / Yes✔ Add JSX Support? … No / Yes✔ Add Vue Router for Single Page Application development? … No / Yes✔ Add Pinia for state management? … No / Yes✔ Add Vitest for Unit Testing? … No / Yes✔ Add an End-to-End Testing Solution? › No✔ Add ESLint for code quality? … No / Yes✔ Add Vue DevTools 7 extension for debugging? (experimental) … No / Yes

How to auto answer with "Yes" in all the above prompts?


Viewing all articles
Browse latest Browse all 5962

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>