mern-project-cli
Version:
A developer-friendly CLI tool that streamlines MERN stack development by automating project setup, database configuration, and boilerplate generation by implementing MVC Architecture. Create production-ready MongoDB, Express, React, and Node.js applicatio
11 lines (10 loc) • 320 B
JavaScript
export function checkNodeVersion() {
const currentVersion = process.versions.node;
const majorVersion = currentVersion.split('.')[0];
if (majorVersion < 14) {
console.error(
`Your Node.js version (${currentVersion}) is not supported. Please use Node.js 14.x or higher.`
);
process.exit(1);
}
}