You are not logged in.

#1 2022-05-28 19:26

najevi
Member
Registered: 2022-05-28
Posts: 2

How to succesfully install and use nodejs LTS (v16)

q4os-desktop 5.10.0-13-686

If you are successfully using nodejs on q4os then I would love to hear from you to understand how you succesfully installed nodejs v14 or higher.

Synaptic offers only v12 and it installs that to /usr/bin/nodejs
Note:
The latest nodejs is v18 (which becomes LTS later this year) and currently the latest nodejs LTS is v16
Also at the first step towards creating a new project in node I get the error message:
Create React App requires Node 14 or higher. Please update your version of Node

Using

curl -fsSL https://deb.nodesource.com/setup_LTS.x | sudo bash -
sudo apt install nodejs

succesfully creates /etc/apt/sources.list.d/nodesource.list which does reference node_16.x  but then actually installs v12 (not v16) ... also to  /usr/bin/nodejs

In an ideal world the q4os repositories would have the latest LTS version of nodejs .. but it doesn't.

Offline

#2 2022-05-28 19:34

najevi
Member
Registered: 2022-05-28
Posts: 2

Re: How to succesfully install and use nodejs LTS (v16)

$ cat /etc/apt/sources.list.d/nodesource.list
deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main
deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main
$

Offline

Board footer

Powered by FluxBB