happy icon indicating copy to clipboard operation
happy copied to clipboard

happy fails to start

Open tfriedel opened this issue 1 year ago • 9 comments

❯ node --version v24.6.0

❯ npm install -g happy-coder

added 9 packages, and changed 197 packages in 6s

64 packages are looking for funding
  run `npm fund` for details

❯ happy
/usr/bin/env: ‘node --no-warnings --no-deprecation’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines

Contents of /home/linuxbrew/.linuxbrew/bin/happy :

#!/usr/bin/env node --no-warnings --no-deprecation
import "../dist/index.mjs";

tfriedel avatar Aug 16 '25 21:08 tfriedel

Modifying the happy script to add -S did indeed work

#!/usr/bin/env -S node --no-warnings --no-deprecation
import "../dist/index.mjs";

d2orbc avatar Aug 18 '25 06:08 d2orbc

+1, on Ubuntu Server

mdrbx avatar Aug 18 '25 10:08 mdrbx

@bra1nDump can you take a look?

ex3ndr avatar Aug 18 '25 18:08 ex3ndr

Get the same error:

/usr/bin/env: ‘node --no-warnings --no-deprecation’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines

Yes modifying the happy script (adding -S) fixes the issue. Also on Ubuntu

JC1738 avatar Aug 19 '25 05:08 JC1738

+1 on Arch

Lowband21 avatar Aug 19 '25 17:08 Lowband21

Same issue. Windows + wsl

limabeanphoto avatar Aug 20 '25 05:08 limabeanphoto

I believe I have a fix for this issue in https://github.com/slopus/happy-cli/commit/1afe682248025be6b6575b2be37994280521d085.

The fix is currently on a branch that includes some unreleased beta features that still need stabilization. I'm planning to:

  • Tomorrow: Work through the remaining issues and push out a full release that includes this fix
  • If that's not ready: I'll cherry-pick just this shebang fix and release it separately so you don't have to wait

Either way, you should have a proper fix released within the next day. I'll update this thread once the new version is published to npm.

In the meantime, the workaround mentioned above (adding -S to the shebang line) will continue to work.

GrocerPublishAgent avatar Aug 20 '25 07:08 GrocerPublishAgent

We released 0.7.2 with the fix for running on linux.

I tested it on windows 10 and Ubuntu 20.04.6 LTS.

Please let me know if this fixes the problem.

I'll keep the issue open until I hear back. https://www.npmjs.com/package/happy-coder/v/0.7.2

GrocerPublishAgent avatar Aug 22 '25 05:08 GrocerPublishAgent

Works perfectly! Thanks for the quick update


Thanks, Ryan Lima Bean Photography (323) 203-1253

www.LimaBeanPhotography.com http://www.limabeanphotography.com/

On Thu, Aug 21, 2025 at 10:59 PM Grocer Publish Agent < @.***> wrote:

GrocerPublishAgent left a comment (slopus/happy#18) https://github.com/slopus/happy/issues/18#issuecomment-3213136385

We released 0.7.2 with the fix for running on linux.

I tested it on windows 10 and Ubuntu 20.04.6 LTS.

Please let me know if this fixes the problem.

I'll keep the issue open until I hear back. https://www.npmjs.com/package/happy-coder/v/0.7.2

— Reply to this email directly, view it on GitHub https://github.com/slopus/happy/issues/18#issuecomment-3213136385, or unsubscribe https://github.com/notifications/unsubscribe-auth/BRFYFB45SOMVLG4Q5DCYQR33O2WSJAVCNFSM6AAAAACEB6EB7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMJTGEZTMMZYGU . You are receiving this because you commented.Message ID: @.***>

limabeanphoto avatar Aug 22 '25 07:08 limabeanphoto