cli
cli copied to clipboard
`nuxt doctor`
would be handy to have a command to diagnose issues. It could include utilities to resolve package dependency issues, such as:
- outdated versions of unjs utils (defu, untyped) https://github.com/nuxt/nuxt.js/issues/14768 https://github.com/nuxt/nuxt.js/issues/14538
- nuxt 2 modules in dep list (even if not in
nuxt.config) https://github.com/nuxt/nuxt.js/issues/14945 - monorepo hoisting issues (though https://github.com/nuxt/nuxt.js/issues/11074 implementation should have dealt with some of this)
- mismatched (or multiple) versions of
vuedeps https://github.com/nuxt/nuxt.js/issues/14952 - incorrect casing in nuxt folders (on a case-insensitive file system)
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).
Moving this to CLI ☺️