IonicaBizau / image-to-ascii

:floppy_disk: A Node.js module that converts images to ASCII art.
http://ionicabizau.net/blog/16
MIT License
1.58k stars 106 forks source link

ERROR when I npm install #54

Closed jonnydungeons closed 7 years ago

jonnydungeons commented 7 years ago

See output

lwip2@1.0.12 install /Users/jonortiz/~github/mind-ctrl/node_modules/lwip2 node lib/install.js

Installing lwip. If this fails, just install GraphicsMagick (http://www.graphicsmagick.org/). npm WARN deprecated lodash-node@2.4.1: This package is discontinued. Use lodash@^4.0.0.

lwip@0.0.9 install /Users/jonortiz/~github/mind-ctrl/node_modules/lwip2/node_modules/lwip node-gyp rebuild

CXX(target) Release/obj.target/lwip_decoder/src/decoder/init.o CXX(target) Release/obj.target/lwip_decoder/src/decoder/util.o CXX(target) Release/obj.target/lwip_decoder/src/decoder/buffer_worker.o ../src/decoder/buffer_worker.cpp:8:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] _height(0), _channels(0), _trans(false), _metadata("") { ^ 1 warning generated. CXX(target) Release/obj.target/lwip_decoder/src/decoder/jpeg_decoder.o CXX(target) Release/obj.target/lwip_decoder/src/decoder/png_decoder.o CXX(target) Release/obj.target/lwip_decoder/src/decoder/gif_decoder.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jmemnobs.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jcomapi.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdapimin.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdapistd.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdatadst.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdatasrc.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdcoefct.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdcolor.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jddctmgr.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdhuff.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdinput.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdmainct.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdmarker.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdmaster.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdpostct.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdsample.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jerror.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jfdctflt.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jfdctfst.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jfdctint.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jidctflt.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jidctfst.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jidctint.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jutils.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jmemmgr.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdarith.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdmerge.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jaricom.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jquant1.o CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jquant2.o CC(target) Release/obj.target/lwip_decoder/src/lib/png/png.o In file included from ../src/lib/png/png.c:14: ../src/lib/png/pngpriv.h:805:4: error: ZLIB_VERNUM != PNG_ZLIB_VERNUM "-I (include path) error: see the notes in pngpriv.h"

error ZLIB_VERNUM != PNG_ZLIB_VERNUM \

^ 1 error generated. make: *** [Release/obj.target/lwip_decoder/src/lib/png/png.o] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at emitTwo (events.js:125:13) gyp ERR! stack at ChildProcess.emit (events.js:213:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Darwin 15.0.0 gyp ERR! command "/usr/local/Cellar/node/8.4.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/jonortiz/~github/mind-ctrl/node_modules/lwip2/node_modules/lwip gyp ERR! node -v v8.4.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! lwip@0.0.9 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the lwip@0.0.9 install 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! /Users/jonortiz/.npm/_logs/2017-09-16T22_22_44_792Z-debug.log It seems like lwip failed to be intalled. Please check the errors. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! lwip2@1.0.12 install: node lib/install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the lwip2@1.0.12 install 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:

jonnydungeons commented 7 years ago

Please close this I read the output and it works.

IonicaBizau commented 7 years ago

Yes, if you don't have the needed tools to compile lwip, it's probably easier to install graphicsmagick.

rmlzy commented 4 years ago

brew install graphicsmagick sloved it