Closed corn-snake closed 5 years ago
Would you please tell us the Node.js version you are using on Circle CI and version of find-up
that is being used (look in node_modules/nyc/node_modules/find-up/package.json
)?
I'm pretty sure you are using an old Node.js version, probably 4.x. Circle CI is bad at keeping their environments up to date. As you can see in engines
, we only support 6.x and up. You should configure Circle CI to use a more modern version of Node by putting something like this in your .circleci/config.yml
file:
jobs:
build:
docker:
- image: circleci/node:8.9
This seemed to hit the right spot! Thank you very much.
Though I'm still surprised, because when using:
- run:
name: update_apt
command: curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
- run:
name: update_node
command: sudo apt-get install -y nodejs
to "update" the environment, it really doesn't truly do so, if the error was still being thrown
Great, glad that worked.
I'm not quite sure why your other solution doesn't work. Maybe those commands are run concurrently.
When I try to execute a code coverage operation in CircleCI, the following error pops up: