@Leh_ryb

Хочу поставить «Image-webpack-loader», но выскакивают ошибки, что делать?

Хочу поставить "Image-webpack-loader", но выскакивает вот эта ошибка:
$ npm install image-webpack-loader --save-dev            
                                                         
> pngquant-bin@5.0.1 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 ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0
but none is installed. You must install peer dependencies
yourself.                                                
npm WARN jshint-loader@0.8.4 requires a peer of jshint@^2
5.0 but none is installed. You must install peer dependen
ies yourself.                                            
npm WARN project__gulp@1.0.0 No description              
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@
.2.4 (node_modules\fsevents):                            
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported
platform for fsevents@1.2.4: wanted {"os":"darwin","arch"
"any"} (current: {"os":"win32","arch":"x64"})            
                                                         
npm ERR! code ELIFECYCLE                                 
npm ERR! errno 1                                         
npm ERR! pngquant-bin@5.0.1 postinstall: `node lib/instal
.js`                                                     
npm ERR! Exit status 1                                   
npm ERR!                                                 
npm ERR! Failed at the pngquant-bin@5.0.1 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
  • Вопрос задан
  • 519 просмотров
Пригласить эксперта
Ответы на вопрос 1
> Что делать?
make sure that libpn-dev is installed
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы