Score:0

what's the canonical way to install nodejs on an Ubuntu desktop (21.x)?

cn flag

I understand that apt is NOT the regular way

I see 3 options:

  1. download and run an opaque script from the nodejs sites
  2. umake (https://wiki.ubuntu.com/ubuntu-make)
  3. asdf (https://asdf-vm.com/)

I'd like to take a look at the Tryton web client (named Sao) and nodejs is a requirement

How am I supposed to get that ?

karel avatar
sa flag
Does this answer your question? [How do I install the latest version of node.js?](https://askubuntu.com/questions/49390/how-do-i-install-the-latest-version-of-node-js) (`sudo snap install node --classic --channel version/stable` where you replace `version` with a 1-digit or 2-digit version number)
uz flag
Jos
@karel Amazingly, this answer is still valid after 10 years.
cn flag
did snap exist 10 years ago ? Wow
Score:0
jp flag
knb

It's a matter of preference, but generally I'd use the Node Version Manager nvm because it facilitates side-by-side installations (and easy de-installations) of major Node versions.

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.