Node modules permission denied after code changes

I’m having a “Permission denied” error in the deploy stage of my serverless application after making some code changes. I tried to revert the commit I had just merged (which led to a previously commit successfully deployed) but than it failed again.

The error is:
“#!/bin/bash -eo pipefail cd services/yalo_api; node_modules/.bin/sls deploy -s $CIRCLE_BRANCH -v
/bin/bash: node_modules/.bin/sls: Permission denied Exited with code 1”

There was no modules instaled or anything like that. Only some simple code changes.