Error while installing Node Js Legacy in ubuntu?

When I try to run this command

sudo apt-get install nodejs-legacy

it gives it as

Reading package lists... Done Building dependency tree Reading state information... Done Package nodejs-legacy is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: nodejs:i386 nodejs

How to get a workaround from this? I can't find a proper fix anywhere.

1 Answer

The nodejs-legacy package simply installs a symbolic link so that it can be executed using the node command.

curl -sL | sudo -E bash -
sudo apt-get install -y nodejs nodejs-legacy
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like