diff --git a/packages/module/src/module.ts b/packages/module/src/module.ts index cd04dbfbf..423bcdc02 100644 --- a/packages/module/src/module.ts +++ b/packages/module/src/module.ts @@ -67,7 +67,7 @@ export default defineNuxtModule({ const modulesToInstall = ['@nuxtjs/tailwindcss', '@nuxtjs/color-mode'] for (const module of modulesToInstall) { - if (nuxt.options._installedModules.some(m => m.meta.name === module)) { + if (await findPath(await resolvePath(module))) { await installModule(module) } else if (!suppressMissingModuleWarning) {