When I try to run this command
sudo apt-get install nodejs-legacyit 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