diff --git a/constants.bzl b/constants.bzl index ab06a1d29c2d..9580dd72154a 100644 --- a/constants.bzl +++ b/constants.bzl @@ -1,5 +1,5 @@ # Engine versions to stamp in a release package.json -RELEASE_ENGINES_NODE = "^16.13.0 || >=18.10.0" +RELEASE_ENGINES_NODE = "^16.14.0 || >=18.10.0" RELEASE_ENGINES_NPM = "^6.11.0 || ^7.5.6 || >=8.0.0" RELEASE_ENGINES_YARN = ">= 1.13.0" diff --git a/docs/DEVELOPER.md b/docs/DEVELOPER.md index 2d0c9a6b1e61..5e383aef8a5b 100644 --- a/docs/DEVELOPER.md +++ b/docs/DEVELOPER.md @@ -6,7 +6,7 @@ To get started locally, follow these instructions: 1. If you haven't done it already, [make a fork of this repo](https://github.com/angular/angular-cli/fork). 1. Clone to your local computer using `git`. -1. Make sure that you have Node `v14.20`, `v16.13` or `v18.10` installed. See instructions [here](https://nodejs.org/en/download/). +1. Make sure that you have Node `v14.20`, `v16.14` or `v18.10` installed. See instructions [here](https://nodejs.org/en/download/). 1. Make sure that you have `yarn` installed; see instructions [here](https://yarnpkg.com/lang/en/docs/install/). 1. Run `yarn` (no arguments) from the root of your clone of this project to install dependencies. diff --git a/lib/packages.ts b/lib/packages.ts index 962fc9a95bcb..7fa8848f78ab 100644 --- a/lib/packages.ts +++ b/lib/packages.ts @@ -85,7 +85,7 @@ function loadPackageJson(p: string) { // Overwrite engines to a common default. case 'engines': pkg['engines'] = { - 'node': '^16.13.0 || >=18.10.0', + 'node': '^16.14.0 || >=18.10.0', 'npm': '^6.11.0 || ^7.5.6 || >=8.0.0', 'yarn': '>= 1.13.0', }; diff --git a/package.json b/package.json index cc728bd77a7e..c550421499b5 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "url": "https://github.com/angular/angular-cli.git" }, "engines": { - "node": "^16.13.0 || ^18.10.0", + "node": "^16.14.0 || ^18.10.0", "yarn": ">=1.21.1 <2", "npm": "Please use yarn instead of NPM to install dependencies" }, diff --git a/packages/angular/cli/bin/ng.js b/packages/angular/cli/bin/ng.js index f5175ea22d29..456b8919647e 100755 --- a/packages/angular/cli/bin/ng.js +++ b/packages/angular/cli/bin/ng.js @@ -48,15 +48,15 @@ if (version[0] % 2 === 1) { } else if ( version[0] < 14 || (version[0] === 14 && version[1] < 20) || - (version[0] === 16 && version[1] < 13) || + (version[0] === 16 && version[1] < 14) || (version[0] === 18 && version[1] < 10) ) { - // Error and exit if less than 14.20, 16.13 or 18.10 + // Error and exit if less than 14.20, 16.14 or 18.10 console.error( 'Node.js version ' + process.version + ' detected.\n' + - 'The Angular CLI requires a minimum Node.js version of either v14.20, v16.13 or v18.10.\n\n' + + 'The Angular CLI requires a minimum Node.js version of either v14.20, v16.14 or v18.10.\n\n' + 'Please update your Node.js version or visit https://nodejs.org/ for additional instructions.\n', ); diff --git a/packages/angular_devkit/build_angular/src/builders/browser-esbuild/index.ts b/packages/angular_devkit/build_angular/src/builders/browser-esbuild/index.ts index 91be8df20957..522977554dc1 100644 --- a/packages/angular_devkit/build_angular/src/builders/browser-esbuild/index.ts +++ b/packages/angular_devkit/build_angular/src/builders/browser-esbuild/index.ts @@ -315,12 +315,7 @@ async function writeResultFiles( directoryExists.add(basePath); } // Copy file contents - await fs.copyFile( - source, - path.join(outputPath, destination), - // This is not yet available from `fs/promises` in Node.js v16.13 - fsConstants.COPYFILE_FICLONE, - ); + await fs.copyFile(source, path.join(outputPath, destination), fsConstants.COPYFILE_FICLONE); }), ); } diff --git a/tools/test/expected_package.json b/tools/test/expected_package.json index 0e2107e43a95..a456312e8903 100644 --- a/tools/test/expected_package.json +++ b/tools/test/expected_package.json @@ -35,7 +35,7 @@ } }, "engines": { - "node": "^16.13.0 || >=18.10.0", + "node": "^16.14.0 || >=18.10.0", "npm": "^6.11.0 || ^7.5.6 || >=8.0.0", "yarn": ">= 1.13.0" }