question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing summernote fails if husky isn't installed

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
easylogiccommented, May 23, 2022

@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.

0reactions
DiemenDesigncommented, Sep 22, 2022

If you know how to fix it, you are welcome to do a PR to fix it. So far from my tests, I don’t have the issue that’s been reported, most likely due to using Summernote differently, otherwise, I would do a PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sh: husky: command not found - node.js - Stack Overflow
Run npm i ( npm install ). Dependencies installed successfuly. Add again the "prepare" script that you removed in step 1. Run again...
Read more >
A brand new website interface for an even better experience!
Installing summernote fails if husky isn't installed.
Read more >
summernote - npm
Start using summernote in your project by running `npm i summernote`. There are 116 other projects in the npm registry using summernote.
Read more >
summernote | Yarn - Package Manager
Summernote is a JavaScript library that helps you create WYSIWYG editors online. Home page: https://summernote.org. Why Summernote? Summernote has a few ...
Read more >
npm - Snyk
... bower-dependency-tree · bower-files · bower-installer · bower-npm-install · bower-resolve-webpack-plugin · bower-update · bowser · box-office-mojo-movie ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found