diff --git a/README.md b/README.md index 0fa50c5683..c22e0efd0d 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,9 @@ git clone git@github.com:coilhq/web-monetization-projects.git yarn ``` -### Node >= 14 +### Node >= 16 -The TypeScript is compiled into es2020, so the minimum version of node required is v14 (currently the LTS) +The TypeScript is compiled into es2020 and the CI only tests 16 (currently the LTS) and on. See [nvm](https://github.com/nvm-sh/nvm#install--update-script) for an easy way to manage multiple versions ### Visual Studio Code diff --git a/commands/yarn/check-node-version.js b/commands/yarn/check-node-version.js index 4026781e84..f0938f2482 100644 --- a/commands/yarn/check-node-version.js +++ b/commands/yarn/check-node-version.js @@ -5,7 +5,7 @@ module.exports = { factory: require => { const version = process.version.replace(/[^0-9.]/g, '') const major = Number(version.split('.')[0]) - if (major < 14) { + if (major < 16 && !process.env.VERCEL) { throw new Error( `node version ${process.version} < minimum node version: v14` )