To install node.js for LinuxMint Vera (21.1) or Ubuntu, do following
Visit https://github.com/nodesource/distributions#deb
Follow the instructions to install the .deb file on your system at https://github.com/nodesource/distributions#debinstall.
Open a linux terminal window and enter the following:
$ curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs <enter>
It will now install node.js on your system.
To enable AutoComplete for node.js refer https://askmeaboutlinux.com/2023/01/23/moving-from-atom-to-visual-studio-code-and-its-extensions-on-linux/