I cannot get this thing to work. I was following these instructions from digitalocean:
How To Install Node.js on Ubuntu 22.04
Then, I am getting this error messages:
sudo apt install nodejs
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/28.3 MB of archives.
After this operation, 179 MB of additional disk space will be used.
(Reading database ... 332991 files and directories currently installed.)
Preparing to unpack .../nodejs_18.7.0-deb-1nodesource1_amd64.deb ...
Unpacking nodejs (18.7.0-deb-1nodesource1) ...
dpkg: error processing archive /var/cache/apt/archives/nodejs_18.7.0-deb-1nodesource1_amd64.deb (--unpack):
trying to overwrite '/usr/share/systemtap/tapset/node.stp', which is also in package libnode72:amd64 12.22.9~dfsg-1ubuntu3
Errors were encountered while processing:
/var/cache/apt/archives/nodejs_18.7.0-deb-1nodesource1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I found this article:
Upgrading nodejs on Ubuntu: How to fix broken pipe error?
But its an older version of Ubuntu. I need some help to perform this project.