summernote: Installing summernote fails if husky isn't installed

Description of your Issue or Request:

npm install is broken since version 0.8.19. The postinstall-script runs sh -c husky install which fails if husky isn’t installed:

npm ERR! command failed
npm ERR! command sh -c husky install
npm ERR! sh: 1: husky: not found

steps to reproduce (Add more if necessary):

  1. Use a system without husky installed
  2. Run npm i summernote

What is your Operating System, Browser and Version and Summernote Version you are using:

This can help find and resolve any issues, place an x inside the brackets or if relevant elaborate after each choice.

  1. Operating System: [ ] Microsoft Windows [ ] Apple [x] Linux [ ] All

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 16 (9 by maintainers)

Most upvoted comments

@DiemenDesign @lqez @hackerwins

we should delete husky install command .

    "postinstall": "husky install",

because it is development mode only. postinstall is run after npm install for other dependecies.