Thanks for looking into this. When I SSH into the container and run the commands manually I get the same errors. I would have included images of tails of logs, but I am limited in the number of images I can include.
Could you please check if mocha and eslist set as devDependencies in package.json? Are you setting NODE_ENV=production or something else that is only installing regular dependencies?
Also, please try to use latest node image and let us know how it goes.
This was a bit of a puzzler! It looks like at some point, the node_modules directory was added to the git repository.
Because of this, the install was skipping for most of the dependencies. When the node_modules was committed, it did not have the .bin directory. It actually looks like node_modules/.bin was explicitly excluded in the .gitignore file
So to adjust this, I would follow this series of steps
git rm -r node_modules
git commit -m "Remove node_modules"
Edit the .gitignore file and remove the entry node_modules/**/.bin/ and other node_modules exclusions
Ignore the entire node_modules directory in the .gitignore with simply node_modules/
Edit the .circleci/config.yml and increment the cache keys prefixes from v1 to v2
git add .circleci/config.yml
git commit -m "Increment CircleCI cache keys"
git push origin master
That should now populate the node_modules/.bin directory which has the symlinks that are included in the $PATH environment variable when running scripts via npm run