Score:0

How to install nodejs?

tr flag

i downloaded and extracted node-v19.8.1-linux-x64.tar.xz on my computer, but the README file contain no info about the download and the instructions of ChatGPT aren't working. So I hope someone here can help me. Sorry for my english and thanks by advance for your help. Pablo

Pablo avatar
tr flag
Yeah, it doesn't made me touch to my system so it's ok on this point
cn flag
You need to ask where you got it from. If there is no readme the only thing to do is to start the executable. https://stackoverflow.com/questions/63312642/how-to-install-node-tar-xz-file-in-linux has a clear how to so why not use that?
ru flag
@Rinzwind because ChatGPT gave them bad info. They don't need to install-from-source, Node provides APT repos for Ubuntu. Basically, ChatGPT 75% of the time gives absolutely crap answers and should NOT be consulted first for issues. :P
Score:4
ru flag

ChatGPT is not a reliable source to solve issues. In many many cases the AI gives you broken answers. In fact, in most cases, you are better off asking your question here or searching Google and bypassing ChatGPT completely and getting help here.

The proper way to set up NodeJS and such on Ubuntu is fairly easy. Both Digital Ocean and Linode have good guides for installing NodeJS on Ubuntu 22.04, but in principle this is the process for installing the latest supported version(s) of NodeJS:

Use NodeSource archives for a latest release of Node

  1. Download the setup script.

    cd ~
    curl -sL https://deb.nodesource.com/setup_19.x -o nodesource_setup.sh
    

    Replace 19.x with the specific major version of NODE you're looking to install - 19 is the current latest as of this post being written.

  2. Execute the setup script

    sudo bash ~/nodesource_setup.sh
    
  3. Once the script is done running, install via APT.

    sudo apt update && sudo apt install nodejs
    

That will set up Node and NPM on your system.

Note that this is specifically for supported Ubuntu releases, and may not immediately work with newer Ubuntu releases which have just come out, because these repositories and this mechanism are a NodeSource approach/solution and they are not immediately up to date with newer Ubuntu releases as they come out.

Score:0
in flag

I used snap - green Install button at top right.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.