Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running a script #880

Closed
vplasencia opened this issue Oct 22, 2024 · 0 comments · Fixed by #881
Closed

Error when running a script #880

vplasencia opened this issue Oct 22, 2024 · 0 comments · Fixed by #881
Assignees
Labels
bug 🐛 Something isn't working

Comments

@vplasencia
Copy link
Member

vplasencia commented Oct 22, 2024

Description

Every time I run a script, I get the error:

Internal Error: spawn Unknown system error -8
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at Object.spawn (node:child_process:762:9)

This happens after I updated the operative system to macOS Sequoia 15.0.1.

Solutions

Possible solutions:

1- Use #!/usr/bin/env ts-node instead of #!node_modules/.bin/ts-node in the ts scripts. (proposed by @cedoor )

2- Remove the shebang lines and add ts-node to all the scripts like so: "version:bump": "ts-node scripts/version.ts ${0}",. (proposed by @vplasencia)

@vplasencia vplasencia added the bug 🐛 Something isn't working label Oct 22, 2024
@vplasencia vplasencia self-assigned this Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant