15

I see the following error when executing npm install -g serverless via buildspec.yml from AWS Codebuild

storage-engine@3.0.7 postinstall /usr/local/lib/node_modules/serverless/node_modules/storage-engine node ./compatibility/detect.js

Error: EACCES: permission denied, open '/usr/local/lib/node_modules/serverless/node_modules/storage-engine/lib/compatibility/index.js'

1 Answers1

1

Used yarn instead of npm.

yarn global add serverless
eibay
  • 11
  • 2