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

npx deno index.ts #2645

Closed
TomasHubelbauer opened this issue Jul 15, 2019 · 1 comment
Closed

npx deno index.ts #2645

TomasHubelbauer opened this issue Jul 15, 2019 · 1 comment

Comments

@TomasHubelbauer
Copy link

Hey there, I am interested to see if there is a plan for one to be able to do npx deno index.ts at some point? I checked #2473 and it looks like the install bullet is already ticked off, but when I tried this command, I got:

ENOENT: no such file or directory, chmod 'C:\Users\me\AppData\Roaming\npm\node_modules\deno\bin\install.js'

Is the mentioned install bullet a different thing from what would be needed to make this an option?

The reason I am interested in this is that I think npx deno index.ts would give me the most straightforward flow when sharing scripts with people or myself on other devices. I am happy to assume people have a recent-enough Node (and thus NPX) installed, but I don't want to mess with NPM after cloning and the combination of npx deno gives me a no-setup experience where Deno will be fetched by that and the dependencies will be resolved and cached as well, so it's literally just a clone and run experience and that's really interesting to me.

@bartlomieju
Copy link
Member

Related issue: denoland/deno_install#6

Is the mentioned install bullet a different thing from what would be needed to make this an option?

It's internal deno command to install script as executable:

$ deno install file_server https://deno.land/std/http/file_server.ts --allow-read --allow-net

This command will install file_server executable that runs script available at "https://deno.land/std/http/file_server.ts".

@ry ry closed this as completed Jul 15, 2019
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

No branches or pull requests

3 participants