trance-stack icon indicating copy to clipboard operation
trance-stack copied to clipboard

Misleading error message when `lefthook` not installed

Open cheruvian opened this issue 1 year ago • 2 comments

What happened?

When lefthook is not installed (on OSX), it throws a failed to install dependencies error which is misleading.

We should

  1. Update the README to note that lefthook is a prerequisite
  2. Improve the error message if lefthook is not installed

Current experience:

% npx create-remix@latest --template meza/trance-stack trance-stack
Need to install the following packages:
[email protected]
Ok to proceed? (y) 

 remix   v2.5.0 💿 Let's build a better website...
      ◼  Directory: Using trance-stack as project directory

      ◼  Template: Using meza/trance-stack...
      ✔  Template copied

   git   Initialize a new git repository?
         No

  deps   Install dependencies with npm?
         Yes

 ██████  Dependencies installing with npm...

      ▲  Oh no! Failed to install dependencies.

What did you expect to happen?

I expected it to say

lefthook is not installed

What version of Remix are you using?

2.5.0

cheruvian avatar Jan 17 '24 04:01 cheruvian