Skip to content

Instantly share code, notes, and snippets.

@aleixmorgadas
Created July 19, 2022 20:42
Show Gist options
  • Save aleixmorgadas/6b07a3b63c0538724503c642b04340b4 to your computer and use it in GitHub Desktop.
Save aleixmorgadas/6b07a3b63c0538724503c642b04340b4 to your computer and use it in GitHub Desktop.
Install node pulsar-client in Apple Silicon M1/M2 Chip

Installing node pulsar-client

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

@putawaychen
Copy link

Yeah!!! It's ok,thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment