I’m trying setup the testing environment. Project is from: Angular .
Here is my config.yml:
version: 2
jobs:
build:
working_directory: ~/my-project
docker:
- image: circleci/node:10-browsers
steps:
- checkout
- restore_cache:
key: my-project-{{ .Branch }}-{{ checksum “package-lock.json” }}
- run: npm install 16
- save_cache:
key: my-project-{{ .Branch }}-{{ checksum “package-lock.json” }}
paths:
- “node_modules”
- run: npm run test – --no-watch --no-progress --browsers=ChromeHeadlessCI
The build stops at the last point: npm run test – --no-watch --no-progress --browsers=ChromeHeadlessCI with error.
Here is the error log:
#!/bin/bash -eo pipefail
npm run test – --no-watch --no-progress --browsers=ChromeHeadlessCI
angular-io-example@0.0.0 test /home/circleci/my-project
ng test “–no-watch” “–no-progress” “–browsers=ChromeHeadlessCI”
Node.js version v10.24.1 detected.
The Angular CLI requires a minimum Node.js version of either v12.20, v14.15, or v16.10.
Please update your Node.js version or visit https://nodejs.org/ for additional instructions.
npm ERR! code ELIFECYCLE
npm ERR! errno 3
npm ERR! angular-io-example@0.0.0 test: ng test "--no-watch" "--no-progress" "--browsers=ChromeHeadlessCI"
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the angular-io-example@0.0.0 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/circleci/.npm/_logs/2021-11-10T20_50_27_358Z-debug.log
Exited with code exit status 3
CircleCI received exit code 3
Any ideas what could went wrong. Thanks for any help!