Skip to content

Instantly share code, notes, and snippets.

@jobel-code
Last active June 17, 2019 09:57
Show Gist options
  • Save jobel-code/aeb4d971c18ad6c63f9bde843f903c9a to your computer and use it in GitHub Desktop.
Save jobel-code/aeb4d971c18ad6c63f9bde843f903c9a to your computer and use it in GitHub Desktop.
How to install node.js 9.x in Ubuntu 16.04

See source: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

curl to setup the node.js repository in your sources.

curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -

Now install node.js. *Note the command name changes in ubuntu, nodejs instead of node. This is to avoid a name conflict with a package called node in ubuntu. sudo apt-get install -y nodejs

Optional (

Install bower. NOTE: Used by https://github.com/adiwg/mdEditor

Warning

npm WARN deprecated bower@1.8.2: ...psst! Your project can stop working at any moment because its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
/usr/bin/bower -> /usr/lib/node_modules/bower/bin/bower

YOU HAVE BEEN WARNED

sudo npm install -g bower

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment