Skip to content

Conversation

@lexicalunit
Copy link
Contributor

@lexicalunit lexicalunit commented Jul 19, 2023

Using #!/usr/bin/env/node means the cli script will fail if node isn't installed exactly at that path. You'll get this error when trying to run the command:

➜ npx schema-infer
sh: ~/project/node_modules/.bin/schema-infer: /usr/bin/env/node: bad interpreter: Not a directory

Probably what you wanted here was #!/usr/bin/env node which uses the env command to execute node in the user's environment.

Using `#!/usr/bin/env/node` means the cli script will fail if `node` isn't installed exactly at that path. You'll get this error when trying to run the command:

```shell
➜ npx schema-infer
sh: ~/project/node_modules/.bin/schema-infer: /usr/bin/env/node: bad interpreter: Not a directory
```

Probably what you wanted here was `#!/usr/bin/env node` which uses the `env` command to execute `node` in the users environment.
@ericallam ericallam merged commit c72139c into triggerdotdev:main Jul 19, 2023
@lexicalunit lexicalunit deleted the patch-1 branch July 19, 2023 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants