import chalk from 'chalk'
import { satisfies } from 'semver'
-import packageJson from './package.json' assert { type: 'json' }
import { version, exit } from 'node:process'
+import { readFileSync } from 'node:fs'
+
+const packageJson = JSON.parse(readFileSync('./package.json', 'utf8'))
/**
* Check if the current node version match the required engines version.