MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / checkNodeVersion

Function checkNodeVersion

lib/cliCommon.js:68–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 process.exit(1);
67}
68function checkNodeVersion() {
69 const satisfies = semver.satisfies(process.versions.node, PACKAGE_INFO.engines.node);
70 if (!satisfies) {
71 throw new Error(
72 `You are running an unsupported version of node. Please upgrade to ${PACKAGE_INFO.engines.node}`,
73 );
74 }
75 return satisfies;
76}
77function applyCommonOptions(program) {
78 program
79 .option('-h, --host [hostname]', 'specify the api host')

Callers 2

stencil-release.jsFile · 0.90
prepareCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected