Hi everyone,
I ran into the following error while running a Node.js build with AWS CodeBuild:
mocha tests/* sh: 1: mocha: Permission denied
To resolve this I removed node_modules from my repository and added it to .gitignore:
node_modules/
Thanks to the following links for the info:
Add node_modules to gitignore: https://stackoverflow.com/a/29820869/522859
Misc background issues: https://github.com/mochajs/mocha/issues/1487
Leave a Reply