Vocaloidas
Vocaloidas

Reputation: 370

Nodejs can't be found after installing in ubuntu

I'm following this guide to installing nodejs as part of prerequisite for react-native.

I've entered the following commands;

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
sudo apt-get install -y nodejs

Everything is shown to be installed correctly. However, whenever i type nodejs --version it tells me that it doesn't exist and that i could install it using sudo apt...

Upvotes: 0

Views: 428

Answers (1)

Levi_OP
Levi_OP

Reputation: 969

Running nodejs uses the command node. So in your case you should try node --version

Upvotes: 1

Related Questions