We use Circle CI to package and deploy our serverless API to AWS and have noticed an increasing number of builds with the following error. Has anyone experienced this error and how were you able to resolve it?
#!/bin/bash -eo pipefail npm run package -- --stage $STAGE --branch $CIRCLE_BRANCH > email@example.com package /home/circleci/project > serverless package "--stage" "tst" "--branch" "example-branch" sh: 1: serverless: Permission denied npm ERR! code ELIFECYCLE npm ERR! errno 126 npm ERR! firstname.lastname@example.org package: `serverless package "--stage" "tst" "--branch" "example-branch"` npm ERR! Exit status 126 npm ERR! npm ERR! Failed at the email@example.com package script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/circleci/.npm/_logs/2019-05-17T05_58_25_306Z-debug.log Exited with code 126