Installing Node.js and Bower on Ubuntu 18.04 globally

Bower is a package dependency manager, just like Composer, but for the front end. With it, it is convenient to keep the necessary packages fresh (for example, the same jquery).

To install Bower globally, we need Node.js and npm.

1. Node.js installation :

sudo apt install nodejs

version check after installation

nodejs -v

2. Npm installation :

sudo apt install npm

If a node-gyp communication error occurred during installation - read here .

version check after installation

npm -v

3. Bower installation :

sudo npm install -g bower

the -g flag indicates the installation is global, so that the software is available to all users

version check after installation

bower -v

I got the following versions on assembly 18.04 :

bower node versions

1609 0

Comments

Be the first to review this item. Share your rating and review so that other customers can decide if this is the right item for them.
You have to log in to leave a comment. Sign in

Similar articles