Klas Mellbourn
Klas Mellbourn

Reputation: 44407

node not working on Bash on Ubuntu on Windows

I am trying to make node work inside Bash on Ubuntu on Windows.

I am just starting out with using Bash on Ubuntu on Windows, so I am probably doing some newbie mistake.

I have done apt-get install on node

# sudo apt-get install node
Reading package lists... Done
[...]

That command gives reasonable output.

But when I actually try to run the command I get no response whatsoever. No error message, nothing

# node -v
# node
#

What am I doing wrong?

Upvotes: 10

Views: 7110

Answers (1)

masoud
masoud

Reputation: 56529

To install NodeJS in ubuntu, install nodejs package:

wget -qO- https://deb.nodesource.com/setup_6.x | sudo bash -
sudo apt-get install nodejs

The package node is not related to NodeJS.

Upvotes: 8

Related Questions