diff --git a/packages/nuxt/src/core/nuxt.ts b/packages/nuxt/src/core/nuxt.ts index e607ce4433..f80bd11551 100644 --- a/packages/nuxt/src/core/nuxt.ts +++ b/packages/nuxt/src/core/nuxt.ts @@ -646,7 +646,7 @@ async function checkDependencyVersion (name: string, nuxtVersion: string): Promi if (!path) { return } const { version } = await readPackageJSON(path) - if (version && gte(nuxtVersion, version)) { + if (version && !gte(nuxtVersion, version)) { console.warn(`[nuxt] Expected \`${name}\` to be at least \`${nuxtVersion}\` but got \`${version}\`. This might lead to unexpected behavior. Check your package.json or refresh your lockfile.`) } }