I found that if I issue the command node -v
in the VisualCode terminal in Windows, I get the following response:
v16.14.0
However, if I issue the choco list --localonly
command, this is also included:
nodejs-lts 14.18.1
So does that mean it's double installed? And which one actually runs on the machine? Can one be removed because it is redundant and won't harm the other installation?
node -v
(16.14.0) is the one currently being used.If you are in the future trying to test out your project with a older node version, another stackoverflow answer recommended npx -p node@4.9.0 -- node -v