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


   steps:
   
   ```shell
    docker run -it --name test_buster node:14.15.1-buster bash
   # enter docker container
   
   mkdir /app && cd /app
   
   wget 
https://mirrors.gigenet.com/apache/pulsar/pulsar-2.8.0/DEB/apache-pulsar-client.deb
   wget 
https://mirrors.gigenet.com/apache/pulsar/pulsar-2.8.0/DEB/apache-pulsar-client-dev.deb
   
   apt install ./apache-pulsar-client*.deb
   
   # and then  cp a package.json into container
   #  docker cp package.json test_buster:/app
   
   npm install pulsar-client
   
   npm WARN deprecated node-pre-gyp@0.15.0: Please upgrade to 
@mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and 
only the @mapbox scoped package will recieve updates in the future
   npm WARN deprecated request@2.88.2: request has been deprecated, see 
https://github.com/request/request/issues/3142
   npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  
Older versions may use Math.random() in certain circumstances, which is known 
to be problematic.  See https://v8.dev/blog/math-random for details.
   npm WARN deprecated har-validator@5.1.5: this library is no longer supported
   
   > pulsar-client@1.3.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.3.0-node-v83-linux-x64.tar.gz
   node-pre-gyp WARN Pre-built binaries not found for pulsar-client@1.3.0 and 
node@14.15.1 (node-v83 ABI, glibc) (falling back to source compile with 
node-gyp)
   gyp WARN install got an error, rolling back install
   gyp ERR! configure error
   gyp ERR! stack Error: read ECONNRESET
   gyp ERR! stack     at TLSWrap.onStreamRead 
(internal/stream_base_commons.js:209:20)
   gyp ERR! System Linux 5.4.0-65-generic
   gyp ERR! command "/usr/local/bin/node" 
"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" 
"configure" "--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=7" "--node_abi_napi=napi" "--napi_build_version=0" 
"--node_napi_label=node-v83"
   gyp ERR! cwd /app/node_modules/pulsar-client
   gyp ERR! node -v v14.15.1
   gyp ERR! node-gyp -v v5.1.0
   gyp ERR! not ok
   node-pre-gyp ERR! build error
   node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node 
/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure 
--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=7 
--node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (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:315:20)
   node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1048:16)
   node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit 
(internal/child_process.js:288:5)
   node-pre-gyp ERR! System Linux 5.4.0-65-generic
   node-pre-gyp ERR! command "/usr/local/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 v14.15.1
   node-pre-gyp ERR! node-pre-gyp -v v0.15.0
   node-pre-gyp ERR! not ok
   Failed to execute '/usr/local/bin/node 
/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure 
--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=7 
--node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)
   npm WARN enoent ENOENT: no such file or directory, open '/app/package.json'
   npm WARN app No description
   npm WARN app No repository field.
   npm WARN app No README data
   npm WARN app No license field.
   
   npm ERR! code ELIFECYCLE
   npm ERR! errno 1
   npm ERR! pulsar-client@1.3.0 install: `node-pre-gyp install 
--fallback-to-build`
   npm ERR! Exit status 1
   npm ERR!
   npm ERR! Failed at the pulsar-client@1.3.0 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!     /root/.npm/_logs/2021-07-21T14_01_52_802Z-debug.log
   ```


-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@pulsar.apache.org

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


Reply via email to