0

I am having trouble to install node.js latest version on ubuntu 14.04. I am following the below steps.

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

But when I am checking the node version like node -v its giving me the below error.

bash: /usr/sbin/node: No such file or directory

Here I need to install the node.js and npm latest version on ubuntu 14.04.

1 Answer 1

0

I think you can lost package and You run command:

LPB_Tandn_IT:~ tannetto$ apt-get install nodejs-legacy

and nodejs worked again! and If not worked, You can create symlink:

Doing a symlink solves the issue: ln -s /usr/sbin/nodejs /usr/sbin/node.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .