nuxt / cli

⚡️ Nuxt Generation CLI Experience.
https://github.com/nuxt/cli/discussions/3
MIT License
267 stars 64 forks source link

`nuxt doctor` #330

Open danielroe opened 2 years ago

danielroe commented 2 years ago

would be handy to have a command to diagnose issues. It could include utilities to resolve package dependency issues, such as:

  1. outdated versions of unjs utils (defu, untyped) https://github.com/nuxt/nuxt.js/issues/14768 https://github.com/nuxt/nuxt.js/issues/14538
  2. nuxt 2 modules in dep list (even if not in nuxt.config) https://github.com/nuxt/nuxt.js/issues/14945
  3. monorepo hoisting issues (though https://github.com/nuxt/nuxt.js/issues/11074 implementation should have dealt with some of this)
  4. mismatched (or multiple) versions of vue deps https://github.com/nuxt/nuxt.js/issues/14952
  5. incorrect casing in nuxt folders (on a case-insensitive file system)
pi0 commented 2 years ago

I had been working on nuxt audit module previously (trying to find the code). It might be good idea to be developed as an ad-hoc module. It was mainly purposed for generic audit (not dependency related issues). Dependency related issues should be handled with nuxi upgrade IMO (and nuxi install maybe sometime later).

manniL commented 9 months ago

Moving this to CLI ☺️