Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

timwiffen's avatar

Nova Tool npm error

Mac OS X 10.15.7 Homestead Laravel: 7.22.2 Laravel Nova: v3.16.3 Node: v12.20.0 npm: 6.14.8

I get an error when creating a new Nova tool:

pngquant failed to build, make sure that libpng-dev is installed

I tried many solutions but the only way I could resolve this was by manually installing libpng within the virtual machine (vagrant ssh)

wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb \
>   && sudo dpkg -i /tmp/libpng12.deb \
>   && rm /tmp/libpng12.deb

Is there something obvious that I might have missed beforehand or is this potentially a bug?

0 likes
0 replies

Please or to participate in this conversation.