当我尝试使用持续集成安装npm install
时,出现以下错误:
⚠ The `/home/jenkins/workspace/dev/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
Libpng-dev, make, gcc
已安装在Ubuntu 18.10上。
这是package.json的内容
https://gist.github.com/turalus/10877da878b9bb0f5c4898fa16fa6fb1
无法防止npm install不能顺利运行,但是无法识别libpng-dev。
我在做什么错了?