ACloudGuru / serverless-plugin-aws-alerts

A Serverless Framework plugin that creates CloudWatch alarms for functions.
MIT License
531 stars 151 forks source link

Cannot install plugin due to Husky `command sh -c husky install` #191

Open kylez-ithaka opened 3 years ago

kylez-ithaka commented 3 years ago

This is a Bug Report

Description

For bug reports:

What went wrong?

Trying to install serverless plugin - it fails due to husky command Other serverless plugins install fine Tried a variety of install commands

What did you expect should have happened?

The plugin would install

What was the config you used?

Tried against working serverless projects - Node JS, and a Java one

What stacktrace or error message from your provider did you see?

$ npm i serverless-plugin-aws-alerts
npm ERR! code 1
npm ERR! path /.../node_modules/serverless-plugin-aws-alerts
npm ERR! command failed
npm ERR! command sh -c husky install
npm ERR! .git can't be found (see https://git.io/Jc3F9)

Additional Data

NPM version

$ npm --version
7.20.5
unimaginativeGitHub commented 3 years ago

Any movement on this issue? Looks like there may have been some changes to the post install handling in npm7 - I tested installing serverless-plugin-aws-alerts with several versions of npm7, but as soon as I downgraded to the latest npm v6 install worked fine.

DavidRigglemanININ commented 3 years ago

I had the same issue. Tried rolling back npm to the latest version of the 6.XX line (6.14.15) and then it worked. I'm not sure if it's an issue with all versions of 7 or just some recent version.