Mar*_*aus 2 linux node.js npm docker gatsby
从昨天开始,我无法将我的 Gatsby 站点部署到我们的服务器,build 抱怨 mozjpeg 库。有没有人遇到过这个错误?
我试过:
automakelinux包libtoolslinux包但似乎没有任何帮助,错误如下:
error /node_modules/mozjpeg: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: /node_modules/mozjpeg
Output:
? spawn /node_modules/mozjpeg/vendor/cjpeg ENOENT
? mozjpeg pre-build test failed
? compiling from source
? Error: Command failed: /bin/sh -c ./configure --enable-static --disable-shared --disable-dependency-tracking --with-jpeg8 --prefix="/node_modules/mozjpeg/vendor" --bindir="/node_modules/mozjpeg/vendor" --libdir="/node_modules/mozjpeg/vendor"
Run Code Online (Sandbox Code Playgroud)
操作系统 Ubuntu 16.04.6 节点 12.14 Gatsby 2.19.7
根据一些 GitHub 线程:
他们建议:
nasm(强烈推荐)automake, autoconf, libtool, dpkg, pkgconfig, libpng, libpng-dev,g++| 归档时间: |
|
| 查看次数: |
2257 次 |
| 最近记录: |