litten / zing-gallery

基于node.js的web相册,让摄影照片的展示更加简单 Web albums based on node.js, more simple to show photography photos
435 stars 125 forks source link

ubuntu下运行失败 #16

Closed lxsyz closed 6 years ago

lxsyz commented 6 years ago

npm i会有warning: file-loader@1.1.6 requires a peer of webpack@^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself,但是我的webpack可以使用额,版本是1.15.0 之后npm run start报错 zing-gallery listening on localhost:3000 events.js:183 throw er; // Unhandled 'error' event ^

Error: spawn /usr/program/zing-gallery/node_modules/webp-bin/vendor/linux/cwebp ENOENT at _errnoException (util.js:1022:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19) at onErrorNT (internal/child_process.js:372:16) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) 不知所措

ohblue commented 6 years ago

跟你一样

atompi commented 6 years ago

@lxsyz @ohblue Ubuntu 环境先 apt 安装 gcc-multilib

sudo apt-get install -y gcc-multilib

然后再 npm install

lxsyz commented 6 years ago

@mission802 多谢,可以了

ihewro commented 6 years ago

我也这样,不过是mac,怎么解决呢?