forked from OpenWF/SpaceNinjaServer
		
	Reviewed-on: OpenWF/SpaceNinjaServer#2747 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
		
			
				
	
	
		
			10 lines
		
	
	
		
			407 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			407 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const [major, minor] = process.versions.node.split(".").map(x => parseInt(x));
 | 
						|
if (major > 22 || (major == 22 && minor >= 7)) {
 | 
						|
    // ok
 | 
						|
} else {
 | 
						|
    console.log("Sorry, your Node version is a bit too old for this. You have 2 options:");
 | 
						|
    console.log("- Update Node.js.");
 | 
						|
    console.log("- Use 'npm run build && npm run start'. Optional libraries must be installed for this.");
 | 
						|
    process.exit(1);
 | 
						|
}
 |