Updating Nodejs version never works!
-
@eeeee seems like you may have more than one version of nodejs installed, and your environment variables point to this specific version.
Can you post the output of
whereis nodejs
andlocate nodejs
? Note that you many need to install themlocate
package for the second command. -
@phenomlab
The locate command gave 20pages of output, here is first few linesAnd last ones ...
I can see node-v16.13.0 mentioned in the middle pages of output, which would make more sense as current version, as v12 was long time ago.
But v12 is what --version says! -
Off topic but I tried to see whats in etc directory
Theres an environment file which seems to have duplicated words?!,
cat environment gives:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/sr/local/games:/snap/bin"And then in directory called environment.d, with two files
90atk-adaptor.conf 90gt-a11y.conf
Nothing with any paths related to NodeJs
-
@phenomlab ok how do i know what versions are installed, so i can uninstall?
I tried
nvm unistall 4.9.1
and nvm uninstall 8.16.2
But it says N/A version is not installedEven says 16.13.0 not installed (which I saw listed in that output)
You said they are still listed, but where?
nvm list only has 18.16.0 in green?