minor: installation with npm fails: prepare script, git hooks, and dependencies
crypt0grapher opened this issue · comments
npm install gives
sh: husky: command not found.
That's because husky 5 is both set as a dev dependency and part of
prepare script in
yarn installs husky and doesn't give an error. However
prepare is not the yarn 2+ lifecycle script anymore.
This shouldn't be the case for husky v4, but for v5
prepare could run a shell script executing husky installation with
npx if no
.husky folder is preset.
yarn is still recommended as per readme file, probably using getting rid of
prepare and using
prepublish only would unify the usage for both
weird.. the automated build should have picked this up.. as it is using npm . does this happen with the new PR in there?
yep, it was, I've tested on a few more images with the latest PR and it worked out just fine.
So, once the npm registry is updated with the v2 of anchor-earn, I'll test once more and close the thread.
@petes-fan-club I've published this to NPM as 2.0.0-alpha1