Klas Mellbourn Klas Mellbourn - 1 year ago 97
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

# 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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download