Talk:Node.js

From Gentoo Wiki
(Redirected from Talk:NodeJS)
Jump to:navigation Jump to:search
Note
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using ~~~~:
A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC)
: A reply [[User:Sally|Sally]] 21:35, 22 January 2025 (UTC)
:: Your reply ~~~~

Article category improvements?

Talk status
This discussion is still ongoing.

As Node.js is an interpreted scripting language much like Python and Ruby, I would suggest keeping this article aligned with the others and thus focused on Node itself.

For a specific guide on running Node apps e.g. behind nginx and Monit, I would rather create an article with a more specific name, maybe in Category:Server_and_Security somewhere. However, the category doesn't mention web applications in general, doesn't include any other similar stuff, and I'm not entirely sure if this actually belongs in the Gentoo Wiki at all, as this is very specific and there are many ways to achieve the same thing. There is no other category where I would see this fit.

Finally, I would change the name of the article to Node.js, as that is the official spelling, see https://nodejs.org/en/.

Let's have a good discussion here! :)

— The preceding unsigned comment was added by CyReVolt (talkcontribs) 1 December 2016‎

Hi Daniel, it looks to me that the general purpose behind this article is how to get Node.js running on Gentoo. This article definitely can use some improvement (I'm not presently the guy for the job). It's good to have articles that help our users do things specifically for Gentoo; although the steps in this article seem to be more suited for a guide-like article.
As for the article rename, I'm fine with it. It should have the official name anyway!
One more thing: don't forget to sign your contributions to discussion pages! Kind regards, --Maffblaster (talk) 00:06, 2 December 2016 (UTC)

Ah! I like everything you've suggested. --AP Fritts (talk) 17:18, 2 December 2016 (UTC)

Port redirection should not be here

Talk status
This discussion is still ongoing.

I put the redirect instructions here because I'm not sure where to put them. They can easily be converted into generic instructions. --Lars Hint (talk) 21:06, 25 March 2024 (UTC)

PATH setting wrong?

Hey, to me it looks like the following code from the article is flawed:

FILE ~/.config/bash/bashrc
export NPM_CONFIG_PREFIX=$HOME/.local/
export PATH="/home/$USER/go/bin:/home/$USER/.local/bin:$NPM_CONFIG_PREFIX/bin:$PATH"
# We have this against messing with Portage files.
# Bonus: now you can `npm install -g` without root.
# According to
# https://wiki.g.o/wiki/Node.js#npm
# https://stackoverflow.com/a/63026107/1879101
# https://www.reddit.com/r/Gentoo/comments/ydzkml/nodejs_is_it_ok_to_install_global_packages/

Am I wrong, or don’t /home/$USER/.local/bin and $NPM_CONFIG_PREFIX/bin evaluate to the same value?

Also, having ~/go directly in the home directory root, sounds like a big no-no. As it will be intermixed with the user’s normal files. I can only see this being sensible, if the entire user account’s purpose is to run a Node.js server (with lower privileges). So while it may make sense there, I don’t think it’s a good idea to recommend it for every user. Most Gentoo users will just have Node.js installed because it’s a dependency, and so if they go and try out some of its stuff, they won’t appreciate, if anything suddenly makes a ~/go directory appear and clutter their home directory.

Evi1m4chine (talk) 20:34, 14 November 2024 (UTC)