title: Error with pngquant when php artisan nova:tool
body: <p>I'm using Laravel Nova. So, today I have been stuck with an error.</p>
  <p>After running this command <code>php artisan nova:tool vendor/name</code>.<br />
  I got a prompt:<br />
  <code>Would you like to install the tool's NPM dependencies? (yes/no) [yes]</code>.</p>
  <p>After &quot;yes&quot;, npm started working, and I got an error with <strong>pngquant</strong>:</p>
  <p>Also, <strong>libpng-dev</strong> <strong>installed.</strong></p>
  <pre><code>
  ✔ optipng pre-build test passed successfully
  
  &gt; pngquant-bin@4.0.0 postinstall /var/www/project/nova-components/name/node_modules/pngquant-bin
  &gt; node lib/install.js
  
  ⚠ The `/var/www/project/nova-components/name/node_modules/pngquant-bin/vendor/pngquant` binary doesn't seem to work correctly
  ⚠ pngquant pre-build test failed
  ℹ compiling from source
  ✔ pngquant pre-build test passed successfully
  ✖ Error: pngquant failed to build, make sure that libpng-dev is installed
  at Promise.all.then.arr (/var/www/project/nova-components/name/node_modules/pngquant-bin/node_modules/bin-build/node_modules/execa/index.js:231:11)
  at process._tickCallback (internal/process/next_tick.js:68:7)
  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {&quot;os&quot;:&quot;darwin&quot;,&quot;arch&quot;:&quot;any&quot;} (current: {&quot;os&quot;:&quot;linux&quot;,&quot;arch&quot;:&quot;x64&quot;})
  npm WARN notsup Unsupported engine for got@5.7.1: wanted: {&quot;node&quot;:&quot;&gt;=0.10.0 &lt;7&quot;} (current: {&quot;node&quot;:&quot;10.19.0&quot;,&quot;npm&quot;:&quot;6.14.4&quot;})
  npm WARN notsup Not compatible with your version of node/npm: got@5.7.1
  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {&quot;os&quot;:&quot;darwin&quot;,&quot;arch&quot;:&quot;any&quot;} (current: {&quot;os&quot;:&quot;linux&quot;,&quot;arch&quot;:&quot;x64&quot;})
  npm WARN ajv-keywords@3.5.2 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
  
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! pngquant-bin@4.0.0 postinstall: `node lib/install.js`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the pngquant-bin@4.0.0 postinstall script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/vagrant/.npm/_logs/2021-05-10T16_02_15_536Z-debug.log
  </code></pre>