ubuntu 18.04 npm install 遇到的pngquant-bin 问题
遇到的问题
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 问题相关推荐
- Ubuntu 18.04.6 LTS install
目录 Ubuntu系统安装环境及版本 安装步骤 0. 虚拟机这边设置就跳过了 1. 选择语言<系统安装语言> 2. 选择键盘配置--默认的就行 3. 设置IP地址 4.设置代理 ...
- setuptools安装_在Ubuntu 18.04系统上安装ERPNext ERP
简介 ERPNext是一个功能丰富的企业级ERP系统,使用Frappe框架编写,一个Python和JavaScript的Web应用程序框架,具有:会计管理.库存管理制造管理.客户关系管理系统.销售管理 ...
- 如何在Ubuntu 18.04上安装/卸载NodeJS
NodeJS is a JavaScript framework that allows you to build fast network applications with ease. In th ...
- 云服务器 ghost系统,在Ubuntu 18.04操作系统上安装Ghost CMS的步骤
本文介绍在Ubuntu 18.04操作系统或者是在Ubuntu 16.04上安装Ghost CMS的详细步骤,在安装的服务器上必需有Nginx Web服务器.FQDN.Node.js.MySQL/Ma ...
- 如何在Ubuntu 18.04上安装ERPNext堆栈
The author selected Software in the Public Interest to receive a donation as part of the Write for D ...
- Ubuntu 18.04安装Node.js最新版
这是Ubuntu 18.04环境下安装Node.js最新版的方法 1.先安装安装低版本 sudo apt-get install node.js 2.再安装npm sudo apt-get insta ...
- 如何在Ubuntu 18.04上使用Node.js和MongoDB构建和部署GraphQL服务器
The author selected the Wikimedia Foundation to receive a donation as part of the Write for DOnation ...
- 在 Ubuntu 18.04 上 docker 部署 easymock
安装环境 Ubuntu 18.04.4 jiangzl@zhaoyang-k21:~$ sudo lsb_release -a No LSB modules are available. Distri ...
- linux ubuntu安装 mono,在Ubuntu 18.04系统中安装Mono及基本使用Mono的方法
本文介绍在Ubuntu 18.04操作系统中安装Mono及基本使用Mono的方法.Mono是一个基于ECMA/ISO标准开发和运行跨平台应用程序的平台,它是Microsoft .NET框架的免费开源实 ...
最新文章
- bootstrap table传回的数据后端怎么获取_Flasksqlalchemy让你的数据库和网页执手偕老吧...
- date日期相减 java_03时间日期类
- Oracle数据库执行exp命令--报参数'log' 不允许有多个值
- [gic]-ARM gicv3/gicv4的详细介绍-2020/08
- camuda流程引擎如此简单「五」
- Git、TortoiseGit、GitHub、Gitee、GitLab 安装与入门使用
- 多核编程文章汇总[z]
- python管道通信_Python进程通信之匿名管道实例讲解
- Women Don’t Like Questions. Is it True?
- c语言中同级运算符的运算顺序,二 如何学习C语言的运算符和运算顺序
- ioswebview混编_iOS与H5混编--优秀的第三方框架WebViewJavascriptBridge
- [Error]Python虚拟环境报错 OSError: setuptools pip wheel failed with error code 2
- 在线抽奖、限时秒杀、拼团抢购,别的商城有的功能你也可以轻松拥有!
- chrome 恐龙 html源码,Chrome 恐龙快跑
- python 构建和解析邮件
- 内卷时代,文章排版当然要快人一步(附公文排版插件)
- 什么是CAS和AQS
- Floyd-Warshall算法总结
- 255字符c语言中,在单片机C语言程序设计中,______类型数据经常用于处理ASCⅡ字符或处理小于等于255的整型数 答案:char...
- Acwing寒假每日一题(一)笨拙的手指