How to ignore the Nuxt.js starting question

Viewed 4992

When I run command npm run dev in a nuxt project, there'll be a question asked in the log,

NuxtJS collects completely anonymous data about usage. 23:02:58 This will help us improving Nuxt developer experience over the time. Read more on https://git.io/nuxt-telemetry Are you interested in participation? (Y/n)

I want to know how to skip this question when running the project?

2 Answers

As documentation explain: https://github.com/nuxt/telemetry#opting-out

  1. You can disable Nuxt Telemetry for your project with several ways: Setting telemetry: false in your nuxt.config:
 export default {
   telemetry: false
 }
  1. Using an environment variable
NUXT_TELEMETRY_DISABLED=1
  1. Using npx nuxt telemetry disable
  npx nuxt telemetry [status|enable|disable] [-g,--global] [dir]

In command prompt: >set NUXT_TELEMETRY_DISABLED=1

Related