const childProcess = require ( "child_process" ) ; const path = require ( "path" ) ; const semiver = require ( "semiver" ) ; const MIN_NODE_VERSION = "16.7.0" ; async function main ( ) { if ( semiver ( process . versions . node , MIN_NODE_VERSION ) < 0 ) { const { red } = require ( "kleur/colors" ) ; console . log ( red ( `[mf:err] Miniflare requires at least Node.js ${ MIN_NODE_VERSION }. 
You should use the latest Node.js version if possible, as Cloudflare Workers use a very up-to-date version of V8.
Consider using a Node.js version manager such as https://volta.sh/ or https://github.com/nvm-sh/nvm.` ) ) ; process . exitCode = 1 ; return ; } childProcess . spawn ( process . execPath , [ "--experimental-vm-modules" , ... process . execArgv , path . join ( __dirname , "dist" , "src" , "cli.js" ) , ... process . argv . slice ( 2 ) , ] , { stdio : "inherit" } ) . on ( "exit" , ( code ) => process . exit ( code === null ? 1 : code ) ) ; } void main ( ) ;