munir131 opened a new issue #134:
URL: https://github.com/apache/pulsar-client-node/issues/134


   I am getting below error while, I am trying to install this package on Alpine
   
   ```
   bash-5.0# npm install pulsar-client
   npm WARN deprecated request@2.88.2: request has been deprecated, see 
https://github.com/request/request/issues/3142
   npm WARN deprecated har-validator@5.1.5: this library is no longer supported
   
   > pulsar-client@1.2.0 install /app/node_modules/pulsar-client
   > node-pre-gyp install --fallback-to-build
   
   node-pre-gyp WARN Using request for node-pre-gyp https download 
   node-pre-gyp WARN Tried to download(404): 
https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.2.0-node-v72-linux-x64.tar.gz
 
   node-pre-gyp WARN Pre-built binaries not found for pulsar-client@1.2.0 and 
node@12.15.0 (node-v72 ABI, musl) (falling back to source compile with 
node-gyp) 
   make: Entering directory '/app/node_modules/pulsar-client/build'
     CC(target) Release/obj.target/nothing/../node-addon-api/src/nothing.o
     AR(target) Release/obj.target/../node-addon-api/src/nothing.a
     COPY Release/nothing.a
     CXX(target) Release/obj.target/Pulsar/src/addon.o
   In file included from ../src/addon.cc:20:
   ../src/Message.h:24:10: fatal error: pulsar/c/message.h: No such file or 
directory
      24 | #include <pulsar/c/message.h>
         |          ^~~~~~~~~~~~~~~~~~~~
   compilation terminated.
   make: *** [Pulsar.target.mk:118: Release/obj.target/Pulsar/src/addon.o] 
Error 1
   make: Leaving directory '/app/node_modules/pulsar-client/build'
   gyp ERR! build error 
   gyp ERR! stack Error: `make` failed with exit code: 2
   gyp ERR! stack     at ChildProcess.onExit 
(/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
   gyp ERR! stack     at ChildProcess.emit (events.js:223:5)
   gyp ERR! stack     at Process.ChildProcess._handle.onexit 
(internal/child_process.js:272:12)
   gyp ERR! System Linux 4.19.112+
   gyp ERR! command "/usr/bin/node" 
"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" 
"--fallback-to-build" 
"--module=/app/node_modules/pulsar-client/build/Release/libpulsar.node" 
"--module_name=libpulsar" 
"--module_path=/app/node_modules/pulsar-client/build/Release" 
"--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" 
"--node_napi_label=node-v72"
   gyp ERR! cwd /app/node_modules/pulsar-client
   gyp ERR! node -v v12.15.0
   gyp ERR! node-gyp -v v5.0.5
   gyp ERR! not ok 
   node-pre-gyp ERR! build error 
   node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node 
/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build 
--fallback-to-build 
--module=/app/node_modules/pulsar-client/build/Release/libpulsar.node 
--module_name=libpulsar 
--module_path=/app/node_modules/pulsar-client/build/Release --napi_version=5 
--node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)
   node-pre-gyp ERR! stack     at ChildProcess.<anonymous> 
(/app/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
   node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:223:5)
   node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
   node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit 
(internal/child_process.js:283:5)
   node-pre-gyp ERR! System Linux 4.19.112+
   node-pre-gyp ERR! command "/usr/bin/node" 
"/app/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
   node-pre-gyp ERR! cwd /app/node_modules/pulsar-client
   node-pre-gyp ERR! node -v v12.15.0
   node-pre-gyp ERR! node-pre-gyp -v v0.12.0
   node-pre-gyp ERR! not ok 
   Failed to execute '/usr/bin/node 
/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build 
--fallback-to-build 
--module=/app/node_modules/pulsar-client/build/Release/libpulsar.node 
--module_name=libpulsar 
--module_path=/app/node_modules/pulsar-client/build/Release --napi_version=5 
--node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to