i need to update the cross-env dependency to 7.0.2 and i get the error : The engine “node” is incompatible with this module. Expected version “>=10.14”. Got “10.13.0”.
i tried to update the node here:
references:
node_defaults: &node_defaults
working_directory: ~/repo
docker: - image: zenika/alpine-node:icu
tried to set it to zenika/alpine-node:latest but i get an error with during my cypress run job: error Your lockfile needs to be updated, but yarn was run with --frozen-lockfile.
tried to set it to circleci/node:12.16.1 but i get an error at installing dependencies: Unarchiving cache…Failed to unarchive cache (probably cause till now i use - image: zenika/alpine-node:icu)
Any ideas how can i update my node env so i can install the dependency?
You can try forcing a cache up by adding a version key to your cache key, if it doesn’t have one. example: -v2-node-cache-{{ checksum package-lock.json }} and then try the circleci/node:12.16.1 image again. You can do that on any caches in your job to see if fresh caches on the new image work.
The solution here was to select an executor from the cypress orb that had a more recent version of node and use the executor parameter of the cypress/run job to enable it