pulsar-client-node icon indicating copy to clipboard operation
pulsar-client-node copied to clipboard

Install pulsar-node on Windows NPM

Open promise94 opened this issue 5 years ago • 1 comments

System information

Run the command npm install pulsar-client --save

The error message

Command: node-pre-gyp install --fallback-to-build
Arguments: 
Directory: F:\project\node\pulsar-node-demo\node_modules\pulsar-client
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | win32 | x64
node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp info check checked for "F:\project\node\pulsar-node-demo\node_modules\pulsar-client\build\Release\libpulsar.node" (not found)
node-pre-gyp http GET https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.1.0-node-v72-win32-x64.tar.gz
node-pre-gyp http 404 https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.1.0-node-v72-win32-x64.tar.gz
node-pre-gyp WARN Tried to download(404): https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.1.0-node-v72-win32-x64.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.1.0-node-v72-win32-x64.tar.gz 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info ok 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Python27\python2.EXE

promise94 avatar Mar 02 '20 04:03 promise94

@sijie If node client will be implemented with Windows support like many libs based on C++ addon, it will help windows users develop applications locally, not using any VM for supporting Debian/Ubuntu lib for building node client locally. Also will be good to have support for alpine Linux for reducing size of the Docker image. Currently overhead is 250Mb comparing with alpine images. As a reference can be Node.js library: https://github.com/uNetworking/uWebSockets.js

sheremet avatar Aug 01 '20 19:08 sheremet

Now, you can install Node.js client by use flow cmd:

npm install pulsar-client

shibd avatar Aug 24 '23 02:08 shibd