diff --git a/packages/cli/bin/run.cjs b/packages/cli/bin/run.cjs index eb657c068..ae28f8f38 100755 --- a/packages/cli/bin/run.cjs +++ b/packages/cli/bin/run.cjs @@ -8,6 +8,11 @@ if (parseInt(process.version.split('.')[0].substring(1), 10) < 14) { process.exit(1); } +// heads up ahead of the next major release, which raises the minimum to Node 20 +console.warn('Heads up! The next major version of @percy/cli will require Node 20+. ' + ( + 'Either pin @percy/cli to its current major version, or make sure your setup runs ' + + 'on Node 20+, before the next major release.')); + import('../dist/index.js') .then(async ({ percy, checkForUpdate }) => { await checkForUpdate();