happy fails to start
❯ 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";
Modifying the happy script to add -S did indeed work
#!/usr/bin/env -S node --no-warnings --no-deprecation
import "../dist/index.mjs";
+1, on Ubuntu Server
@bra1nDump can you take a look?
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
+1 on Arch
Same issue. Windows + wsl
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.
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
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: @.***>