7

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.

2
  • 3
    nvm deactivate and node -v Commented Jul 9, 2018 at 12:47
  • 1
    Open the console and type node -v Commented Jul 9, 2018 at 12:47

3 Answers 3

6

Use the traditional command

node --version 

OR

node -v 

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

Sign up to request clarification or add additional context in comments.

Comments

1

Try following code ->

$ node -v

Comments

0

In the command line just type the following

node --version 

or you can use this code

node -v 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.