Gulp - optipng抛出错误

时间:2017-11-12 14:43:20

标签: google-app-engine gulp roots-sage

运行gulp来构建我的项目。

引发错误:

[14:35:01] Starting 'images'...

events.js:183
      throw er; // Unhandled 'error' event
      ^
Error: spawn X\node_modules\optipng-bin\vendor\optipng.exe ENOENT
    at _errnoException (util.js:1024:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

目前已安装OptiPNG版本0.7.6

不确定要检查或做什么?

1 个答案:

答案 0 :(得分:0)

解决方法是删除node_modules文件夹并再次运行npm install