-
Notifications
You must be signed in to change notification settings - Fork 31
Guide: Installing node #7
Comments
Demonstrating different approaches to installing would probably be helpful. ie: installing via nvm, nave or n, installing via homebrew, installing via node source apt repos. Walking through some basic node command-line usage would be good too. Like |
I would be willing to write a version or section on how to install Node with Windows. Is this for Node 0.12 or the-software-formerly-known-as-io.js 2.2.1? |
Ok - then we should maybe split this up anyways.
For the |
Have a look at how rust does getting started docs. That seems like a good starting point. Their docs are very good. :) |
Ok should we structure it like rusts docs? Anyone against that? |
Following rusts' example would not be a bad idea. You may also look at how Django structures theirs. I might add that it'd be good to:
|
I'll do. |
Again, I'd like to ask about the timeliness of this - should we wait until there is a solid foundation of Node, with an actual release after the merger? Right now, we're in a sort of limbo where the newest version is io.js, but Node is the namespace which we will be speaking under. If we were to direct them to Node 0.12, that'd be a bit like throwing them under the bus. I see it as having high probability to confuse newcomers. |
@bnb I'm not entirely sure it matters. Installation is (hopefully (IIRC)) relatively consistent across versions. Shouldn't we be able to just point them at https://nodejs.org/download ? EDIT: Put another way: Is recommending a particular version a requirement for a complete installation guide? |
@bengl I think it should be aimed at the newest version - the newest version of io.js isn't represented at all in the link you provided. The LTS WG would be the one to talk to about maintaining install instructions for previous versions. Essentially, right now it's giving people a suggestive UI for an old version of what is now called Node, whose support is up in the air at the moment - up to whatever the LTS WG decides. As I said, it can be confusing - being given UI that makes version 0.12 seem current when you've heard the newest version is 2.x.x is a big problem. Edit: /cc @nodejs/LTS |
I would say point them at latest for now. The whole point of coordinating this docs effort through github is that updates are trivial. We can revisit the install docs later when names change or "stable" is more clearly defined. |
There is a link to io.js - is the location it points to deprecated? I also think that we should start to move, knowing that we are dealing with moving targets and adopt things when they become clearer. Maybe my writeup isn't usable at all but if we don't start writing and reasoning about the outcome we will have a hard time when a new, stable release is finally there. I'm quite sure that this won't be a one shot but a process until we find a common structure and tone for every kind of material we want to provide, don't you think so? |
The difference I was trying to convey was that there's a table with images, interactivity, and types/versions of downloads for the current "Node" release, while the link to io.js is hidden in a paragraph. I just think that the docs should be more clear about the fact that io.js' current state is what Node will be adopting. Telling people to install something that is essentially outdated is not good practice. |
O.K. but then this page should be changed. The docs should be agnostic, I think.
|
What would the structure for the docs being agnostic look like? |
I have to add one thing first. IMHO currently Node.js 0.12 is the current stable version. Although it might be somehow outdated compared to the current io.js, moving the userbase to the new converged version will take quite some time. Especially for enterprises. To tell users which version is currently recommended to install has huge impact and is out of scope of this WG, I think. So I don't want to get into this topic too much if possible. The structure for the agnostic doc would be: |
Who is this document for? If it's for newbies, we should probably point them at the version that is most likely to universally work for them. Explaining the difference between the versions comes after that, perhaps as a separate document.
|
I'd like to know what some of the core io.js developers think. (// cc @mikeal, @rvagg, @bnoordhuis, @indutny, @piscisaureus, @trevnorris; your views on this will help me understand the official position better.) @danielkhan I think we have differing opinions on the way "current version" should be handled. I guess my question is: there are inherent differences between the install pattern for io.js and Node's 0.12.x branch. One of these is the download link - when you're telling someone how to download something, you need to instruct them to go to a specific link for their platform. As I understand it, you'd be encouraging the 0.12 branch. I don't really see that as agnostic. Apologies if I'm over-thinking this, or am coming off as rude - that's not my intention. I see that we have differences in the way we think this should be done, and I'm trying to solve the issue in the best way I can both for the sake of the documentation's readers and us as its writers. I don't mean to force my way of thinking onto anyone, I just want to come to a conclusion that we can all be happy with. |
I just wanted to get the ball rolling. If it needs to roll into this discussion before we can proceed that's fine for me. I still need to understand your point and use case, though because
With agnostic I mean that I will link to the download page that reflects my point of view very well. |
Let me try to address your points:
I'd say that the branding right now is irrelevant. I agree that you're not writing for io.js - right now, that name is just an artifact of what was a fork of Node.js, whose content is being pulled back into Node.js under the Node.js branding. Essentially, if you write against Node 0.12, you're writing something that is guaranteed to be outdated within a very short time span - why not write for the future that is 100% certain? |
I am aware of the ongoing process and I am also quite aware of its implications especially as my company invested quite some time and effort to support the current Node.js development line in its products. I also think that it will take at least one year until enterprises can switch to any new version of Node.js. Said that I really doubt that the installation - and this is what this issue is about - will work differently than now and I really don't think that version numbering is on the slate for this discussion either. The usual way is to have static links to |
Okay, I can get on board with that. Would you agree to having a link to another docs page that explains the situation with Node + io.js merging to make the Node Foundation? Could this page explain the version variance, or link to yet another docs page that does? |
Perfect. Sure I am agreeing with this because not explaining the whole io.js thing could also confuse users. Any other thoughts? Anyone? |
I'll definitely review. Just may take an extra day or two while I recover
|
@bnb you might find this useful, its how we recommend people install node on windows: http://docs.strongloop.com/display/SL/Installing+Node+and+StrongLoop+on+Windows |
@bnb:
You can reach all of us with @danielkhan It occurred to me that I have an idea of who this document should address, but it might not be the same folks you have in mind. Who are you planning on addressing? Folks talking about adding an article explaining the convergence, the versioning system, or the relationship between io.js and Node: open new issues for these articles! Include the audience you're trying to address, and what message or idea you want to convey in the issue text. |
My target group would be people that want to install Node.js - as simple and maybe naive as that. That might be newbies but also people that look up the current best practices to install it. |
@chrisdickinson Why would v0.10.x be the recommended version of Node.js to install? That is probably related to my question here: nodejs/node#1997 (comment). |
It might be best to separate newbies out from an in-depth installation guide. There are a lot of (completely valid) ways to get a working copy of We definitely need both guides – "how to install" for newbies, and an exhaustive "how to install" for experienced devs.
My rationale for wanting to point newbies at v0.10 is that I want to make sure we're pointing them at a version that is exceedingly unlikely to do anything unexpected on them, and is imminently google-able when something does explode. If this guide is meant to be more comprehensive – targeted at experienced programmers – then the above concern doesn't apply. |
I am currently trying to get this done within one document - let's see how it works. We can split it up or dump it afterwards. |
@chrisdickinson v0.12.x is the current stable version. I believe it is unlikely to do anything unexpected on new users in terms of installation. Regarding the installation process, I believe what applies to v0.10.x also applies to v0.12.x, so I would think that most documentation and answers online about v0.10.x apply to v0.12.x. Also, npm shipped with v0.12.x is current, whereas npm shipped with v0.10.x is very old. I can see that as a major source of problems for new users. Do you have specific, concrete concerns about v0.12.x and its usage by new users? My main concern here is that the work done by maintainers of the current stable version of Node.js is focused on v0.12.x. Directing users at v0.10.x would send a confusing message and would not help users or maintainers, as users would use a version that is not considered by maintainers to be the primary focus. |
@misterdjules Let's wait to see what @danielkhan comes up with:
Ultimately we're going to recommend whatever the LTS group / release discussion says we should recommend. |
@chrisdickinson I don't mean to block anything, I want to avoid the situation where a lot of new users read some documentation that mentions v0.10.x as the version to install by default, or some kind of LTS, when as you said this should be recommended by the LTS group. It seems we're on the same page about this so it's all good 👍 |
👍 as well. For me, at least, I (stupidly) adopted the attitude that we're shipping to production right away, which I now see was never the case. Apologies for adding to the blockage. |
Can someone elaborate on what will happen to wiki pages like https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager - at the beginning there is now a note that the wiki page will undergo a full update. I am currently writing the linux part for our docs - how does the wiki relate to us at all and can we incorporate parts? |
You can copy as much of the readme @ https://github.com/nodesource/distributions as you want which contains info on how to install the various versions on Linux, it's quite complicated now with all of the versions available but that's just the way it is. We still don't have full support across Linux distros for 0.12 and io.js for build-chain and complexity reasons but I expect that to be sorted out soon. |
I failed to do that. |
I would like to take the plunge and write a tutorial on installing Node as I think that this simply should be the first doc we have. What do you think?
That said I think that it pretty much resembles https://nodejs.org/download/ - how should it relate to it? Will it replace it or should we link to it for the latest versions?
Are there any topics you'd like to be covered?
The text was updated successfully, but these errors were encountered: