-
Notifications
You must be signed in to change notification settings - Fork 40
Install Node.js
Follow these steps to install Node.js:
-
Complete the following installation tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04
-
You might encounter a
-bash: /usr/sbin/node: No such file or directoryerror when you try running the commandnodein the terminal. Quoting the reason for this error from the Debian Technical Committee resolution draft, published in mailing list:1.. The nodejs package shall be changed to provide /usr/bin/nodejs, not /usr/bin/node. The package should declare a Breaks: relationship with any packages in Debian that reference /usr/bin/node.
2.. The nodejs source package shall also provide a nodejs-legacy binary package at Priority: extra that contains /usr/bin/node as a symlink to /usr/bin/nodejs. No package in the archive may depend on or recommend the nodejs-legacy package, which is provided solely for upstream compatibility. This package declares shall also declare a Conflicts: relationship with the node package.
There are 2 ways to solve this: