L
L
Leha Lepeha2018-11-10 18:35:37
npm
Leha Lepeha, 2018-11-10 18:35:37

I want to put "Image-webpack-loader", but errors pop up, what should I do?

I want to put "Image-webpack-loader", but this error pops up:

$ npm install image-webpack-loader --save-dev            
                                                         
> [email protected] postinstall C:\localserver\OSPanel\d
mains\project__gulp\node_modules\pngquant-bin            
> node lib/install.js                                    
                                                         
  ‼ self signed certificate in certificate chain         
  ‼ pngquant pre-build test failed                       
  i compiling from source                                
  × Error: pngquant failed to build, make sure that libpn
-dev is installed                                        
    at Promise.all.then.arr (C:\localserver\OSPanel\domai
s\project__gulp\node_modules\bin-build\node_modules\execa
index.js:231:11)                                         
    at process._tickCallback (internal/process/next_tick.
s:68:7)                                                  
npm WARN [email protected] requires a peer of [email protected]^6.0.0
but none is installed. You must install peer dependencies
yourself.                                                
npm WARN [email protected] requires a peer of [email protected]^2
5.0 but none is installed. You must install peer dependen
ies yourself.                                            
npm WARN [email protected] No description              
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]
.2.4 (node_modules\fsevents):                            
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported
platform for [email protected]: wanted {"os":"darwin","arch"
"any"} (current: {"os":"win32","arch":"x64"})            
                                                         
npm ERR! code ELIFECYCLE                                 
npm ERR! errno 1                                         
npm ERR! [email protected] postinstall: `node lib/instal
.js`                                                     
npm ERR! Exit status 1                                   
npm ERR!                                                 
npm ERR! Failed at the [email protected] postinstall scr
pt.                                                      
npm ERR! This is probably not a problem with npm. There i
 likely additional logging output above.                 
                                                         
npm ERR! A complete log of this run can be found in:     
npm ERR!     C:\Users\alex2\AppData\Roaming\npm-cache\_lo
s\2018-11-10T15_25_40_990Z-debug.log

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2018-11-10
@alexey-m-ukolov

> What to do?
make sure libpn-dev is installed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question