Showing posts with label Node Js. Show all posts
Showing posts with label Node Js. Show all posts

Wednesday, July 11, 2018

Error: `libsass` bindings not found. Try reinstalling `node-sass`

sudo npm install -g n
sudo n 0.12.7
sudo npm install node-sass@2
sudo npm -g install node-gyp@3
sudo npm rebuild node-sass 

How to Install Bower on Ubuntu 17.04 & 18.04 LTS

Bower manages the components for website like frameworks, libraries, assets, and utilities. It keeps track all the components and checks regularly for their updates. Bower uses a manifest file bower.json file to keep track of packages.This tutorial will help you to install Bower on Ubuntu, Debian, and LinuxMint operating systems.

Step 1 – Install Node.js

First of all, you need to install node.js on your system. Use following set of commands to add node.js PPA in your Ubuntu system and install it.
sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install nodejs
Make sure you have successfully installed node.js and NPM on your system
node --version
npm --version

Step 2 – Install Bower using NPM

After installation of node.js and npm on your system, use following commands to install bower.
sudo npm install -g bower
Now, You have successfuly installed bower. Let’s check the installed version of bower on your system using following command.
bower --version

1.8.2

install Node Js and npm

sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm

Uninstall Node Js and npm

sudo apt-get purge --auto-remove nodejs
sudo apt-get purge nodejs