pngquant build error - not sure what to do

136 views
Skip to first unread message

Ankush Thakur

unread,
Mar 19, 2017, 12:46:11 PM3/19/17
to nodejs
Hello,

I'm trying to build (https://github.com/mattermost/platform) on my local machine, and one of the steps gives me a series of error, with each element of the series being something like this:

[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

Now, I found that the directory /root/go/src/github.com/mattermost/platform/webapp/node_modules/pngquant-bin/vendor doesn't exist. Since then I've tried a number of approaches but none have worked. I'm also confused as to why both pngquant and pngquant-bin both exist in node_modules.

Can someone guide me in the right direction?

Cheers,
Ankush
Reply all
Reply to author
Forward
0 new messages