EyalAr / lwip

Light Weight Image Processor for NodeJS
MIT License
2.36k stars 230 forks source link

lwip does not able to install in node v6.2.2 #263

Open Dipak2912 opened 8 years ago

Dipak2912 commented 8 years ago

Please find below attached npm debug file. npm-debug.txt

node -v v6.2.2

npm -v 3.9.5

Operating system CentOS 6.7

I am not able to install lwip module in nodejs. It throws following error in command line:

root@wb01-development [/home/whizbite/public_html/node]# npm install -g lwip
npm WARN deprecated lodash-node@2.4.1: This package has been discontinued in favor of lodash@^4.0.0.

> lwip@0.0.9 install /usr/local/lib/node_modules/lwip
> node-gyp rebuild

make: Entering directory `/usr/local/lib/node_modules/lwip/build'
  CXX(target) Release/obj.target/lwip_decoder/src/decoder/init.o
In file included from ../src/decoder/decoder.h:13,
                 from ../src/decoder/init.cpp:1:
../node_modules/nan/nan.h:43:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from /root/.node-gyp/6.2.2/include/node/node.h:42,
                 from ../src/decoder/decoder.h:11,
                 from ../src/decoder/init.cpp:1:
/root/.node-gyp/6.2.2/include/node/v8.h:341: error: expected unqualified-id before ‘using’
/root/.node-gyp/6.2.2/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’:
/root/.node-gyp/6.2.2/include/node/v8.h:358: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/6.2.2/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’:
/root/.node-gyp/6.2.2/include/node/v8.h:365: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/6.2.2/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’:
/root/.node-gyp/6.2.2/include/node/v8.h:369: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/6.2.2/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’:
/root/.node-gyp/6.2.2/include/node/v8.h:437: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/6.2.2/include/node/v8.h: At global scope:
/root/.node-gyp/6.2.2/include/node/v8.h:477: error: expected unqualified-id before ‘using’
/root/.node-gyp/6.2.2/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’:
/root/.node-gyp/6.2.2/include/node/v8.h:809: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/6.2.2/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’:
/root/.node-gyp/6.2.2/include/node/v8.h:834: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/6.2.2/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’:
/root/.node-gyp/6.2.2/include/node/v8.h:846: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/6.2.2/include/node/v8.h: At global scope:
/root/.node-gyp/6.2.2/include/node/v8.h:871: error: expected unqualified-id before ‘using’
/root/.node-gyp/6.2.2/include/node/v8.h:1108: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/6.2.2/include/node/v8.h:1114: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/6.2.2/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’:
/root/.node-gyp/6.2.2/include/node/v8.h:3246: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/6.2.2/include/node/v8.h: At global scope:
/root/.node-gyp/6.2.2/include/node/v8.h:4463: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/6.2.2/include/node/v8.h:4479: error: ‘nullptr’ was not declared in this scope
/root/.node-gyp/6.2.2/include/node/v8.h: In member function ‘v8::Local<T> v8::MaybeLocal<T>::ToLocalChecked()’:
/root/.node-gyp/6.2.2/include/node/v8.h:7348: error: ‘nullptr’ was not declared in this scope
In file included from ../node_modules/nan/nan.h:190,
                 from ../src/decoder/decoder.h:13,
                 from ../src/decoder/init.cpp:1:
../node_modules/nan/nan_maybe_43_inl.h: At global scope:
../node_modules/nan/nan_maybe_43_inl.h:13: error: expected unqualified-id before ‘using’
../node_modules/nan/nan_maybe_43_inl.h:16: error: expected unqualified-id before ‘using’
../node_modules/nan/nan_maybe_43_inl.h:19: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:24: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:31: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:36: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:41: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:46: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:51: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:59: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:64: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:69: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:76: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:83: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:91: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:98: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:108: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:114: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:118: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:125: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:130: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:135: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:139: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:145: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:150: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:156: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:162: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:168: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:174: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:180: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:186: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:194: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:201: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:205: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:209: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:213: error: expected initializer before ‘<’ token
../node_modules/nan/nan_maybe_43_inl.h:217: error: expected initializer before ‘<’ token
../src/decoder/init.cpp:38: error: expected ‘}’ at end of input
../node_modules/nan/nan_callbacks_12_inl.h:167: warning: ‘void Nan::imp::FunctionCallbackWrapper(const v8::FunctionCallbackInfo<v8::Value>&)’ defined but not used
../node_modules/nan/nan_callbacks_12_inl.h:181: warning: ‘void Nan::imp::GetterCallbackWrapper(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)’ defined but not used
../node_modules/nan/nan_callbacks_12_inl.h:197: warning: ‘void Nan::imp::SetterCallbackWrapper(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’ defined but not used
../node_modules/nan/nan_callbacks_12_inl.h:253: warning: ‘void Nan::imp::PropertyGetterCallbackWrapper(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)’ defined but not used
../node_modules/nan/nan_callbacks_12_inl.h:270: warning: ‘void Nan::imp::PropertySetterCallbackWrapper(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<v8::Value>&)’ defined but not used
../node_modules/nan/nan_callbacks_12_inl.h:290: warning: ‘void Nan::imp::PropertyEnumeratorCallbackWrapper(const v8::PropertyCallbackInfo<v8::Array>&)’ defined but not used
../node_modules/nan/nan_callbacks_12_inl.h:306: warning: ‘void Nan::imp::PropertyDeleterCallbackWrapper(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Boolean>&)’ defined but not used
../node_modules/nan/nan_callbacks_12_inl.h:323: warning: ‘void Nan::imp::PropertyQueryCallbackWrapper(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Integer>&)’ defined but not used
../node_modules/nan/nan_callbacks_12_inl.h:428: warning: ‘void Nan::imp::IndexGetterCallbackWrapper(uint32_t, const v8::PropertyCallbackInfo<v8::Value>&)’ defined but not used
../node_modules/nan/nan_callbacks_12_inl.h:444: warning: ‘void Nan::imp::IndexSetterCallbackWrapper(uint32_t, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<v8::Value>&)’ defined but not used
../node_modules/nan/nan_callbacks_12_inl.h:464: warning: ‘void Nan::imp::IndexEnumeratorCallbackWrapper(const v8::PropertyCallbackInfo<v8::Array>&)’ defined but not used
../node_modules/nan/nan_callbacks_12_inl.h:480: warning: ‘void Nan::imp::IndexDeleterCallbackWrapper(uint32_t, const v8::PropertyCallbackInfo<v8::Boolean>&)’ defined but not used
../node_modules/nan/nan_callbacks_12_inl.h:496: warning: ‘void Nan::imp::IndexQueryCallbackWrapper(uint32_t, const v8::PropertyCallbackInfo<v8::Integer>&)’ defined but not used
make: *** [Release/obj.target/lwip_decoder/src/decoder/init.o] Error 1
make: Leaving directory `/usr/local/lib/node_modules/lwip/build'
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:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 2.6.32-573.8.1.el6.x86_64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/lwip
gyp ERR! node -v v6.2.2
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok 
npm ERR! Linux 2.6.32-573.8.1.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "lwip"
npm ERR! node v6.2.2
npm ERR! npm  v3.9.5
npm ERR! code ELIFECYCLE

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 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the lwip package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs lwip
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls lwip
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/whizbite/public_html/node/npm-debug.log
DawsonG commented 8 years ago

I too am running into this issue.

Dipak2912 commented 8 years ago

Thank you to give a reply.


On Sat, 16/7/16, Dawson Goodell notifications@github.com wrote:

Subject: Re: [EyalAr/lwip] lwip does not able to install in node v6.2.2 (#263) To: "EyalAr/lwip" lwip@noreply.github.com Cc: "Dipak Chavda" dips_mca09@yahoo.com, "Author" author@noreply.github.com Date: Saturday, 16 July, 2016, 9:48 AM

I too am running into this issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ytsarev commented 8 years ago

same here

kothari775 commented 8 years ago

Getting stuck on production, same issue with latest node v6.4.0

➜ apiV2 git:(master) ✗ npm install lwip --latest

lwip@0.0.9 install /Users/Novanet/Work/apiV2/node_modules/lwip node-gyp rebuild

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

CXX(target) Release/obj.target/lwip_decoder/src/decoder/init.o Could not connect to Redis at 127.0.0.1:6379: Connection refused make: *\ [Release/obj.target/lwip_decoder/src/decoder/init.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:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12) gyp ERR! System Darwin 15.2.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/Novanet/Work/apiV2/node_modules/lwip gyp ERR! node -v v6.4.0 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok npm WARN 360-api@1.0.0 No repository field. npm ERR! Darwin 15.2.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "lwip" "--latest" npm ERR! node v6.4.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE

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 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the lwip package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs lwip npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls lwip npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /Users/Novanet/Work/apiV2/npm-debug.log

inDream commented 8 years ago

I've just tested node 6.5 & node-gyp 3.4 can successful compile lwip. (windows 8.1) My previous Install seems fail due to node-gyp 3.3.1.

thatcort commented 8 years ago

I just tried with node 6.5 and node-gyp 3.4 on Windows 10 64 bit with windows-build-tools installed and it fails to build.

jeremieca commented 8 years ago

Idem on OSX With node 6.5 and node-gyp 3.4

360disrupt commented 8 years ago

Same here on OSX 10.11.6 with node v.6.7and node-gyp 3.4

Undefitied commented 8 years ago

The same on Centos 6.5 && node 6.6.0 && node-gyp 3.4.0

778477 commented 8 years ago

same node v6.7.0

frangeris commented 8 years ago

Same here node v6.0.0

LawJolla commented 8 years ago

Follow the error...

I'm on Centos. The error said I didn't have a C++11 complier. I installed a C++11 compiler. Error gone.

http://hiltmon.com/blog/2015/08/09/c-plus-plus-11-on-centos-6-dot-6/

Undefitied commented 7 years ago

@LawJolla it worked for me, cool. Thanks

kakopappa commented 7 years ago

I had the same problem on Ubuntu. I installed C++ 11 compile liker @LawJolla and error gone

here is how to install C++ 11 on Ubuntu http://charette.no-ip.com:81/programming/2011-12-24_GCCv47/

newbreedofgeek commented 7 years ago

I had this issue when I upgraded to node.js 6.9.2 locally. I was initially on 4.3.0 and lwip version 0.0.8 and it was all good.

This was on my thumby thumbnail creator and img server which uses lwip.

I got similar issues as above after the 6.9.2 node.js upgrade.

But npm uninstalling lwip v0.0.8 and upgrading it to v0.0.9 fixed it.

more here: https://github.com/newbreedofgeek/thumby/issues/1

sawfly commented 7 years ago

I have the same issue. node v6.10.3; npm v3.10.10; Ubuntu 17 when i run npm i lwip i get

In file included from ../src/lib/png/png.c:14:0:
../src/lib/png/pngpriv.h:805:4: error: #error ZLIB_VERNUM != PNG_ZLIB_VERNUM "-I (include path) error: see the notes in pngpriv.h"
 #  error ZLIB_VERNUM != PNG_ZLIB_VERNUM \
vihuvac commented 7 years ago

@newbreedofgeek in my case it did not work! The problem persist on macOS Sierra 10.12.5. I had the same issue with node v6.11.0 LTS and with my current version v8.1.2.

I got the same warning than @sawfly e.g:

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 (/Users/vihuvac/.npm-packages/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:197:12)
gyp ERR! System Darwin 16.6.0
gyp ERR! command "/usr/local/Cellar/node/8.1.2/bin/node" "/Users/vihuvac/.npm-packages/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/vihuvac/Sites/blueimp-file-uploader-express/node_modules/lwip
gyp ERR! node -v v8.1.2
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.
jatinderbhola commented 7 years ago

any solution? capture

I test with node 6.11.1 and 7.10.1 but it is not working.

sawfly commented 7 years ago

Hi. I tried lwip coz i wanted to work with one team at one project. I tried lwip on ubuntu 14.04, 16.04, Windows 7, 8. I had problems on any OS and with different versions of node, npm, gyp. They declined me as team member. I think, the trouble is either with hardware, or with liibrary (v 0.2 it is even not beta). I think, you'd better don't use it (see something else) or wait for newest versions. Sorry but i can't help you

2017-07-14 21:48 GMT+03:00 jatinder bhola notifications@github.com:

any solution? [image: capture] https://user-images.githubusercontent.com/12767363/28226247-6c865072-68a3-11e7-956c-1a377f517021.PNG

I test with node 6.11.1 and 7.10.1 but it is not working.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EyalAr/lwip/issues/263#issuecomment-315437711, or mute the thread https://github.com/notifications/unsubscribe-auth/ATnFXbDCvSbTIdTY5EbKeKplf7yDFIatks5sN7fpgaJpZM4I-fuv .

-- Have a nice day. Best regards sincerely,

Eugene Sawfly

jatinderbhola commented 7 years ago

@sawfly I know :( ... It works fine with node 7.2.1 but cause issues with node 8.1.4, 7.10.1, 6.11.1 Do you have any good image processing module in you mind which I can use as a replacement for LWIP. Thank you very much for replying. 👍

sawfly commented 7 years ago

try one of this (I didn't use anyone) https://www.npmjs.com/package/easyimage, https://www.npmjs.com/package/image-processor, https://www.npmjs.com/package/jimp (or find other in google search)

2017-07-17 17:42 GMT+03:00 jatinder bhola notifications@github.com:

@sawfly https://github.com/sawfly I know :( ... It works fine with node 7.2.1 but cause issues with node 8.1.4, 7.10.1, 6.11.1 Do you have any good image processing module in you mind which I can use as a replacement for LWIP. Thank you very much for replying. 👍

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EyalAr/lwip/issues/263#issuecomment-315776188, or mute the thread https://github.com/notifications/unsubscribe-auth/ATnFXX9OyS1qnKmly4_xB4PrSZr9G-DWks5sO3LmgaJpZM4I-fuv .

-- Have a nice day. Best regards sincerely,

Eugene Sawfly

EduardoHillebrand commented 7 years ago

[root@ip---- srv]# node -v v6.11.0

[root@ip---- srv]# npm -v 3.10.10

node-gyp -v v3.4.0

with same issue on amazon ec2 linux

OS: NAME="Amazon Linux AMI" VERSION="2017.03" ID="amzn" ID_LIKE="rhel fedora" VERSION_ID="2017.03" PRETTY_NAME="Amazon Linux AMI 2017.03" Amazon Linux AMI release 2017.03

npm ERR! Failed at the lwip@0.0.9 install script 'node-gyp rebuild'.

npm-debug.log

EDIT: i've solved part of problem with yum groupinstall 'Development Tools'

but now i faced another problem In file included from ../src/lib/png/png.c:14:0: ../src/lib/png/pngpriv.h:805:4: error: #error ZLIB_VERNUM != PNG_ZLIB_VERNUM "-I (include path) error: see the notes in pngpriv.h" error ZLIB_VERNUM != PNG_ZLIB_VERNUM \

miller45 commented 6 years ago

the matching zlib is included from my local node-gyp version (there are different node-gyp version in %USERPROFILE%/./node-gyp . The node-gyp version 4.4.2 has the right ZLIB_VERNUM=0x1280 in zlib.h. I could solve the problem by specficing a target version for node-gyp via commandline: SET NPM_CONFIG_TARGET=v4.4.2 npm config set target=v4.4.2 --global npm install --global sprity

wrz-wrs commented 6 years ago

gyp ERR! node -v v8.9.2 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok

obendev commented 6 years ago

241 verbose node v8.11.3 242 verbose npm v6.3.0 243 error code ELIFECYCLE 244 error errno 1 245 error lwip@0.0.9 install: node-gyp rebuild 245 error Exit status 1 246 error Failed at the lwip@0.0.9 install script. 246 error This is probably not a problem with npm. There is likely additional logging output above. 247 verbose exit [ 1, true ]

omprakashnitdgp commented 5 years ago

I am facing same issue

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 (/Users/omprakash/.nvm/versions/node/v9.11.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at ChildProcess.emit (events.js:180:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12) gyp ERR! System Darwin 16.1.0 gyp ERR! command "/Users/omprakash/.nvm/versions/node/v9.11.2/bin/node" "/Users/omprakash/.nvm/versions/node/v9.11.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/omprakash/node_api/node_modules/lwip gyp ERR! node -v v9.11.2 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN farmGuide.in@0.0.1 No repository field. npm WARN farmGuide.in@0.0.1 license should be a valid SPDX license expression npm WARN The package gulp-sass is included as both a dev and production dependency. npm WARN The package gulp-uglify is included as both a dev and production dependency. npm WARN The package run-sequence is included as both a dev and production dependency.

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/omprakash/.npm/_logs/2019-03-28T13_22_52_383Z-debug.log Oms-MacBook-Air:node_api omprakash$ Oms-MacBook-Air:node_api omprakash$ npm install --save jimp npm WARN farmGuide.in@0.0.1 No repository field. npm WARN farmGuide.in@0.0.1 license should be a valid SPDX license expression npm WARN The package gulp-sass is included as both a dev and production dependency. npm WARN The package gulp-uglify is included as both a dev and production dependency. npm WARN The package run-sequence is included as both a dev and production dependency.