npm install奇怪的行为:pngquant预先构建测试失败

时间:2019-04-10 15:47:22

标签: javascript node.js npm pngquant

当我尝试使用持续集成安装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。

我在做什么错了?

0 个答案:

没有答案