import { nodeMajor } from '@lib/constants' ; import * as log from '@utils/output/log' ; import { exit } from '@utils/output/exit' ; export const checkNodeMajor = ( version ) => { if ( nodeMajor < version ) { log . error ( `You are currently running on Node ${ nodeMajor }. Oasis requires Node ${ version } or higher.` ) ; exit ( 1 ) ; } } ;