Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find nodejs version

Tags:

node.js

I installed nodejs first with nvm but it didn't work as I expected. When I installed it with LTS version sudo yum -y install nodejs, it worked but I'm not able to find the version of node.

node -v
-bash: /root/.nvm/versions/node/v8.11.3/bin/node: No such file or directory

I tried to remove nvm but still getting the same message.

like image 644
Zacle Avatar asked Oct 16 '22 16:10

Zacle


1 Answers

Use the traditional command

node --version

OR

node -v

If nodejs -v is working and above solutions not, refer this: symbolic-link-error

like image 173
Pransh Tiwari Avatar answered Nov 01 '22 09:11

Pransh Tiwari