Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装typescript插件报错,错误:pngquant failed to build,请确保安装了libpng-dev #2726

Open
840326521 opened this issue Jan 31, 2021 · 1 comment

Comments

@840326521
Copy link

请问在windows10中怎么安装libpng-dev呢?网上查了一大堆,都是说在linux系统下才能安装libpng-dev。

@betgar
Copy link

betgar commented Feb 26, 2021

图片处理几个包,一般是拉源码,本地编译的。所以你要配置好编译环境。

  1. 配置 https://github.com/nodejs/node-gyp
  2. 配置https://github.com/nodejs/node-gyp#on-windows
  3. 然后删除node_modules,重新安装

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants