https://www.npmjs.com/package/pulsar-client
You might found an error like
...
ERR! install response status 404 Not Found on https://pulsar.apache.org/docs/en/client-libraries-cpp/libpulsar-v1.6.2-node-v93-darwin-arm64.tar.gz
...
Preparation:
$> brew install libpulsar
$> export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:$(brew --prefix)/include"
$> export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib"
$> export PULSAR_CPP_DIR=/opt/homebrew/Cellar/libpulsar/2.10.1_1 # you might need to adapt the version by the time you look at this tutorial
Installation:
$> npm install pulsar-client
Yeah!!! It's ok,thank you very much!