frontsideair / yarnhook

Run `yarn install`, `npm install` or `pnpm install` on git hooks automatically
MIT License
217 stars 17 forks source link

Switching from a branch and yarnhook fails result in detached head #26

Closed christophehurpeau closed 6 years ago

christophehurpeau commented 6 years ago

When yarn install fails, for example because there is a bug in yarn or because of a wrong node version (The engine "node" is incompatible with this module. Expected version ">=4 <=9") we can end up in detached head