我正在尝试在 Ubuntu 上编译 Mattermost(我安装了 Node 7.x,甚至在 6.x 中尝试过),但出现以下类型的错误:
[701] ./images/favicon/apple-touch-icon-120x120.png 471 bytes {60} [built] [failed] [1 error]
[702] ./images/favicon/apple-touch-icon-144x144.png 471 bytes {60} [built] [failed] [1 error]
[703] ./images/favicon/apple-touch-icon-152x152.png 471 bytes {60} [built] [failed] [1 error]
[704] ./images/favicon/apple-touch-icon-57x57.png 471 bytes {60} [built] [failed] [1 error]
[705] ./images/favicon/apple-touch-icon-60x60.png 471 bytes {60} [built] [failed] [1 error]
[1657] multi babel-polyfill ./root.jsx root.html 52 bytes {60} [built]
+ 2192 hidden modules
ERROR in ./images/favicon/apple-touch-icon-60x60.png
Module build failed: Error: spawn /root/go/src/github.com/mattermost/platform/webapp/node_modules/pngquant-bin/vendor/pngquant ENOENT
at exports._errnoException (util.js:1033:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
@ ./root.html 1:945-999
@ multi babel-polyfill ./root.jsx root.html
完整的错误日志很大,如果需要我会发布它,但我认为这似乎是 pngquant 无法处理 om 图像的一些问题。我在兜圈子,几乎是无计可施。有人可以提出一些建议吗?
==更新==
经过进一步调查,我发现该目录/root/go/src/github.com/mattermost/platform/webapp/node_modules/pngquant-bin/vendor
不存在。为什么会这样?哦