mirror of
https://github.com/labring/laf.git
synced 2025-12-08 20:26:22 +00:00
8 lines
293 B
JavaScript
8 lines
293 B
JavaScript
// Lock lockFileVersion to version 2 And resolve import error when import xxx from 'node:xxx'
|
|
if (process.version && +process.version.slice(1).split('.')[0] < 18) {
|
|
console.log(
|
|
`Required node version >= 18 not satisfied with current version ${process.version}.`
|
|
)
|
|
process.exit(1)
|
|
}
|