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

Please make deno simple(installation) as you download an app( like exe file) #5727

Closed
fisforfaheem opened this issue May 21, 2020 · 13 comments
Closed

Comments

@fisforfaheem
Copy link

it would help a lot, also make it faster i dont wanna learn node.js

@rafaelferres
Copy link

Hi @fisforfaheem,
I also agree with you. I took the liberty of creating an MSI deno installer.
https://github.com/rafaelferres/deno-windows-installer

@theoludwig
Copy link

Agreed, the installation should be as simple as Node.js.

@Yamboy1
Copy link

Yamboy1 commented May 23, 2020

I'm coming here from a Linux point of view rather than windows, but can I ask what's so hard about running a single command in the command prompt to install deno, considering that you need to use the command prompt / powershell to use deno anyway?

@theoludwig
Copy link

I don't mind, I didn't have problem to install Deno but I don't see why they don't make a .exe file as they did for node.js.

@alisabzevari
Copy link

Also, Microsoft announced Windows official package manager called winget. It looks like they accept msi or exe in their manifests. So, it makes sense to package deno as an executable for Windows.

@rafaelferres
Copy link

I think having two problems solved or all! So I created these MSI installers

@fisforfaheem
Copy link
Author

fisforfaheem commented May 23, 2020 via email

@sholladay
Copy link

To all the downvoters, I just want to point out that OP's profile mentions that they are trying to learn programming. They're just a beginner. Deno is not yet beginner friendly in a number of ways, including its installation process. We should try to be understanding. I also think English may not be their native language (?). It's quite possible that their comment comes off as more rude than intended.

The command line is significantly more fluid and powerful for experienced programmers. But that's not immediately obvious when first learning it.

@fisforfaheem
Copy link
Author

fisforfaheem commented May 24, 2020 via email

@MarkTiedemann
Copy link
Contributor

MarkTiedemann commented May 25, 2020

I don't see why they don't make a .exe file as they did for node.js.

I think there's a misunderstanding here.

As it says on the frontpage of the website: "Ships only a single executable file."

A Deno release for Windows is shipped in a .zip file. For example, the version 1.0.2 release lists the following .zip file that can be downloaded on Windows: deno-x86_64-pc-windows-msvc.zip

If you download the .zip, you can right click it, and choose "Extract All...". Open the extracted folder, and you will find deno.exe. You can double-click deno.exe and you'll be in the Deno read-eval-print-loop, and can start typing and executing JS.

All that the installer does for you is download the .zip (as you can do manually), extract the .zip (as you can do manually), and put the location of the .zip into your path so you can run deno.exe or just deno from the command line, rather than having to type the full path, e.g. C:\some-path\deno.exe (as you can do manually, too).

The installer is just for convenience. So you don't have to do those 3 things yourself, but rather the installer will do it for you.

Then again, "installer" is kind of the wrong term on Windows at least. There's no setup.exe or setup.msi or anything like that needed here. It's just an .exe file in a .zip file.

The only thing that I think could be done to make it even more simple is to just ship the .exe file without zipping it. But then again, the download will last longer...

@littledivy
Copy link
Member

littledivy commented May 26, 2020

@fisforfaheem If you hate command lines, how will you even run a Deno script? (Assuming you don't want an executable for that too)

we are living in 2020 not everything should be 30 years old

Wdym by that? It is wrong to say cmds are 30 years old! How do you think people made Deno anyway?

@Yamboy1
Copy link

Yamboy1 commented May 27, 2020

@MarkTiedemann I think this misunderstanding, which is a perfect description, is due to how installation is depicted by a majority of a windows users. This comes back to what "install" actually means. If we go to the man page for the install command on linux, it says this "install - copy files and set attributes". The reality is that installation is not just the matter of downloading an executable, in this case an exe, but also copying it into a directory on the PATH, so it can be run from any folder in the command line, and also in most cases to create a start menu shortcut, which is less applicable, but is still not a terrible thing to do.

In the case of windows, most people are still used to the idea of "installers" which handle all of this, and it's fair to say that deno is lacking in an installer. Sure you can download the binary, but that means you have to be in the downloads folder every time you run the application, and you have to add .exe on the end. As a linux user, I personally don't think I could live without my "installers", i.e. the package manager.

This thread has gotten a bit toxic in my opinion (even I got caught in it), and has deviated from what the real issue is, the fact that there is no simple exe installer, which is honestly the norm on windows. A command line approach such as using iwr / wget makes a lot of sense from a linux perspective, but imo it's worth thinking about how we can make the deno installation more ergonomic on windows, so that it fits in better with the general windows ecosystem.

Just my 2c.

@fisforfaheem
Copy link
Author

Thanks everyone for support, and Love, Hope to learn deno on *windows 10( simple and productive .period). *linux is love too but without that bash thingy...

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

8 participants