遇到的问题

npm install> pngquant-bin@4.0.0 postinstall /var/www/tax_client/node_modules/pngquant-bin
> node lib/install.js⚠ The `/var/www/tax_client/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 installedpngquant-binat Promise.all.then.arr (/var/www/tax_client/node_modules/pngquant-bin/node_modules/bin-build/node_modules/execa/index.js:231:11)at <anonymous>at process._tickCallback (internal/process/next_tick.js:188:7)
/var/www/tax_client
├─┬ babel-core@6.26.3
│ └── source-map@0.5.7
├─┬ style-loader@0.13.2
│ └─┬ loader-utils@1.2.3
│   ├── big.js@5.2.2
│   └─┬ json5@1.0.1
│     └── minimist@1.2.0
└─┬ vue-loader@13.7.3├─┬ loader-utils@1.2.3 │ ├── big.js@5.2.2 │ └─┬ json5@1.0.1 │   └── minimist@1.2.0 └─┬ postcss-load-config@1.2.0└─┬ cosmiconfig@2.2.2└── minimist@1.2.0 npm WARN optional Skipping failed optional dependency /browser-sync/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
npm WARN optional Skipping failed optional dependency /watchpack/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
npm WARN optional Skipping failed optional dependency /webpack-dev-server/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
npm ERR! Linux 4.15.0-65-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLEnpm 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 'node lib/install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pngquant-bin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node lib/install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs pngquant-bin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls pngquant-bin
npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request:
npm ERR!     /var/www/tax_client/npm-debug.log

解决方式

sudo apt-get install libpng-dev # 安装依赖的软件
npm install pngquant-bin        # 覆盖4.00版本,升级倒5.02
npm install                     # 使用5.02 版本执行#执行日志
> pngquant-bin@5.0.2 postinstall /var/www/tax_client/node_modules/pngquant-bin
> node lib/install.js✔ pngquant pre-build test passed successfully/var/www/tax_client
└── pngquant-bin@5.0.2  extraneousnpm WARN optional Skipping failed optional dependency /browser-sync/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
npm WARN optional Skipping failed optional dependency /watchpack/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
npm WARN optional Skipping failed optional dependency /webpack-dev-server/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9

ubuntu 18.04 npm install 遇到的pngquant-bin 问题相关推荐

  1. Ubuntu 18.04.6 LTS install

    目录 Ubuntu系统安装环境及版本 ​安装步骤​ 0. 虚拟机这边设置就跳过了 1. 选择语言<系统安装语言>​ 2. 选择键盘配置--默认的就行​ 3. 设置IP地址​ 4.设置代理​ ...

  2. setuptools安装_在Ubuntu 18.04系统上安装ERPNext ERP

    简介 ERPNext是一个功能丰富的企业级ERP系统,使用Frappe框架编写,一个Python和JavaScript的Web应用程序框架,具有:会计管理.库存管理制造管理.客户关系管理系统.销售管理 ...

  3. 如何在Ubuntu 18.04上安装/卸载NodeJS

    NodeJS is a JavaScript framework that allows you to build fast network applications with ease. In th ...

  4. 云服务器 ghost系统,在Ubuntu 18.04操作系统上安装Ghost CMS的步骤

    本文介绍在Ubuntu 18.04操作系统或者是在Ubuntu 16.04上安装Ghost CMS的详细步骤,在安装的服务器上必需有Nginx Web服务器.FQDN.Node.js.MySQL/Ma ...

  5. 如何在Ubuntu 18.04上安装ERPNext堆栈

    The author selected Software in the Public Interest to receive a donation as part of the Write for D ...

  6. Ubuntu 18.04安装Node.js最新版

    这是Ubuntu 18.04环境下安装Node.js最新版的方法 1.先安装安装低版本 sudo apt-get install node.js 2.再安装npm sudo apt-get insta ...

  7. 如何在Ubuntu 18.04上使用Node.js和MongoDB构建和部署GraphQL服务器

    The author selected the Wikimedia Foundation to receive a donation as part of the Write for DOnation ...

  8. 在 Ubuntu 18.04 上 docker 部署 easymock

    安装环境 Ubuntu 18.04.4 jiangzl@zhaoyang-k21:~$ sudo lsb_release -a No LSB modules are available. Distri ...

  9. linux ubuntu安装 mono,在Ubuntu 18.04系统中安装Mono及基本使用Mono的方法

    本文介绍在Ubuntu 18.04操作系统中安装Mono及基本使用Mono的方法.Mono是一个基于ECMA/ISO标准开发和运行跨平台应用程序的平台,它是Microsoft .NET框架的免费开源实 ...

最新文章

  1. app、H5、safari、appstore应用主页评分页之间拉起调用、打开手机某些系统功能、app打开文档
  2. azkaban 与 java任务_Azkaban的任务类型分析35:JavaProcessJob的执行
  3. Fuxi ServiceModeJob 多租户(Quota Group) 功能介绍
  4. recurrence relation in parenthesis placing problem
  5. ubuntu19.10的xfce4中的Default-xhdpi主题失去了光滑效果
  6. 星期三,今天早上上了四节JS课程,下午听健康讲座,晚上装系统
  7. Java学习笔记——函数式接口
  8. MFC关键技术-命令传递机制
  9. Linux Shell脚本专栏_Linux系统发送告警邮件脚本_02
  10. 自定义控件---重写Listbox实现item图标变换和item点击事件
  11. 【C语言】输入一个字符串,并对字符串中的偶数位置的字符按从小到大的顺序排序,奇数位置的字符不动,输出排序后的结果...
  12. 微信小程序按钮Button使用详解
  13. 应用Python绘制雷达图时遇到的坑
  14. 【优化算法】自私羊群优化算法(SHO)【含Matlab源码 1569期】
  15. 从阿里一面谈面试需要准备什么
  16. 如何恢复、打开、开启默认共享ipc$ c$ Dameware安装出错
  17. 啤酒与尿布:数据分析相关性分析案例一
  18. C++常成员函数与普通成员函数访问比较
  19. pandas数据分组聚合——groupby()、aggregate()、apply()、transform()和filter()方法详解
  20. Win8系统鼠标右键突然失灵怎么办 win8桌面右键菜单失效怎么修复

热门文章

  1. BP(Burp Suite)爆破入门
  2. 20165214 2018-2019-2 《网络对抗技术》Exp4 恶意代码分析 Week6
  3. python 多线程并行 矩阵乘法_python实现简单的并行矩阵乘法
  4. 猿创征文|国产数据库之达梦数据库安装使用
  5. 如何生成一张证书图片
  6. google谷歌云盘_Google 12岁生日快乐
  7. java bean生成_Java Bean 生成器
  8. arduino二位数码管_Arduino基础入门篇17—四位数码管的驱动
  9. Docker v19.x入门教程啊
  10. 最全大数据技术知识体系