gpt4 book ai didi

node.js - 使用 npm install 时出现错误 pngquant-bin

转载 作者:行者123 更新时间:2023-12-02 10:34:04 33 4
gpt4 key购买 nike

我安装了 npm 并且一切正常,直到出现此错误,我试图找出导致此问题的原因,但没有成功。安装后,我尝试运行“npm run dev”,但也出现错误。我猜是因为 npm install 的问题。我尝试安装模块 pngquant-bin 但也没有成功。

如果您知道一种方法或者您已经遇到同样的问题,请帮助我。我看到了有关它的其他问题,但有任何答复。请。

pngquant-bin@4.0.0 postinstall /var/www/html/futebit/node_modules/pngquant-bin node lib/install.js

  ⚠ The `/var/www/html/futebit/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
at Promise.all.then.arr (/var/www/html/futebit/node_modules/pngquant-bin/node_modules/bin-build/node_modules/execa/index.js:231:11)
at process._tickCallback (internal/process/next_tick.js:68:7)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm 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.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-07-16T14_17_27_195Z-debug.log

最佳答案

Pngquant 需要 vcruntime140.dll。从 https://www.microsoft.com/en-in/download/details.aspx?id=48145 下载并安装适用于 Visual Studio 2015 的 64 位和 32 位 Visual C++ Redistributable

关于node.js - 使用 npm install 时出现错误 pngquant-bin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51364124/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com