Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to ignore the Nuxt.js starting question

Tags:

nuxt.js

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?

like image 729
ApplyforCS Avatar asked Jul 26 '20 06:07

ApplyforCS


1 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]
like image 121
Wonderman Avatar answered Oct 08 '22 15:10

Wonderman