File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
packages/nuxi/src/commands Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import { isBun, isDeno } from 'std-env'
1313import { loadKit , tryResolveNuxt } from '../utils/kit'
1414import { cwdArgs , legacyRootDirArgs , logLevelArgs } from './_shared'
1515
16- // Types for the hook-based architecture (will move to @nuxt/schema)
1716interface DoctorCheck {
1817 // Required
1918 name : string
@@ -38,7 +37,6 @@ interface DoctorCheckContext {
3837 nuxt : Nuxt
3938}
4039
41- // Augment NuxtHooks for the doctor:check hook (will be moved to @nuxt/schema)
4240declare module '@nuxt/schema' {
4341 interface NuxtHooks {
4442 'doctor:check' : ( ctx : DoctorCheckContext ) => void | Promise < void >
@@ -175,10 +173,7 @@ async function checkVersions(checks: DoctorCheck[], cwd: string): Promise<void>
175173
176174 // Check Node.js version (if not Bun/Deno)
177175 if ( ! isBun && ! isDeno ) {
178- const nodeVersion = process . version
179- const major = Number . parseInt ( nodeVersion . slice ( 1 ) . split ( '.' ) [ 0 ] || '0' , 10 )
180-
181- if ( major < 18 ) {
176+ if ( ! semverSatisfies ( process . versions . node , '>= 18.0.0' ) ) {
182177 checks . push ( {
183178 id : 'UNSUPPORTED_NODE' ,
184179 name : 'Versions' ,
You can’t perform that action at this time.
0 commit comments