LoginSignup
8
4

More than 5 years have passed since last update.

Cent OS で Laravel Mix のインストール時にエラーが発生する場合の対処法

Posted at

発生したエラー

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.

原因

libpng がインストールされていない

対応

yum install libpng-devel

他のOSで発生した場合は、各OSのパッケージ管理ツールで libpng を探してインストールしてみれば良い。

8
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
4