Reputation: 370
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
Reputation: 969
Running nodejs uses the command node
. So in your case you should try node --version
Upvotes: 1