V
V
vasIvas2015-11-22 00:23:52
Node.js
vasIvas, 2015-11-22 00:23:52

Why does nodejs install incorrectly?

What am I doing -

sudo apt-get update
sudo apt-get install nodejs

Then -
sudo node -v
output
[email protected]:~$ sudo node -v
sudo: node: command not found
[email protected]:~$

then
node -v
output
[email protected]:~$ node -v
bash: /usr/bin/node: Нет такого файла или каталога
[email protected]:~$

What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mark Doe, 2015-11-22
@mourr

sudo ln -s /usr/bin/nodejs /usr/bin/node
And everything will be right

N
Nicholas, 2015-11-22
@ACCNCC

I have ubuntu and everything works fine! node -v

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question