Error with npm update: pngquant binary does not seem to work correctly

While installing npm for my ongoing project I got a error as shown below:

To rectify the error I followed the steps given below and it worked for me:

Step 1: Run sudo apt-get install libpng-dev.

Step 2: Run npm install -g pngquant-bin.

Step 3: Run npm install.

References:

Click here

Click here

Tagged : /