Klas Mellbourn Klas Mellbourn - 2 months ago 8
Node.js Question

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?

Answer

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.