2014-10-03 126 views
2

正如標題所說,當我嘗試一飲而盡,imagemin可選DEP失敗

npm install gulp-imagemin 

它拋出這些錯誤:

npm WARN optional dep failed, continuing [email protected] 
npm WARN optional dep failed, continuing [email protected] 
npm WARN optional dep failed, continuing [email protected] 
npm WARN optional dep failed, continuing [email protected] 
[email protected] node_modules/gulp-imagemin 
├── [email protected] 
├── [email protected] ([email protected]) 
├── [email protected] ([email protected], [email protected], [email protected],  [email protected], [email protected]) 
├── [email protected] ([email protected], [email protected]) 
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 

和插件不工作了,任何人都知道什麼是繼續?謝謝。

我在OSX小牛隊,如果這件事。

+0

您是否嘗試過'npm cache clean'? – 2014-10-03 14:33:27

+0

@Aperçu是啊,沒有運氣。 – pwnjack 2014-10-03 15:03:40

回答

2

Image-min相關性無法安裝。分開安裝軟件包將解決問題:

npm install imagemin-gifsicle imagemin-pngquant imagemin-optipng imagemin-jpegtran --save-dev