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

No such file or directory on node shell script #5965

Closed
Jameskmonger opened this issue Mar 31, 2016 · 3 comments
Closed

No such file or directory on node shell script #5965

Jameskmonger opened this issue Mar 31, 2016 · 3 comments
Labels
invalid Issues and PRs that are invalid.

Comments

@Jameskmonger
Copy link

I have a script hello which has the following content:

#!/usr/bin/env node
console.log('hello there!');

When I run it with ./hello, I get the following output:

$ ./hello 
: No such file or directory

When I run it with node ./hello, I get the following output:

$ ./hello 
hello there!
@evanlucas
Copy link
Contributor

Is the hello script set as executable?

@mscdex mscdex added the question Issues that look for answers. label Mar 31, 2016
@ghaiklor
Copy link
Contributor

Make your script as executable.

chmod +x ./hello

@bnoordhuis
Copy link
Member

Closing, nothing to do with node itself.

@bnoordhuis bnoordhuis added invalid Issues and PRs that are invalid. and removed question Issues that look for answers. labels Mar 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Issues and PRs that are invalid.
Projects
None yet
Development

No branches or pull requests

5 participants