For any future readers that are having issues with installing
lisk-sdk on their m1 Mac (compiling
rocksdb in particular), this is what solved the issue for me:
- Uninstall all versions of node installed with nvm. Thoroughly.
- Uninstall other node installations
- Double check if all is gone with
- Download the installer package from the official nodejs website (direct link to latest v12 LTS: https://nodejs.org/dist/latest-v12.x/node-v12.21.0.pkg).
Strangely enough this is different from installing the same version using nvm.
It appears that
n is working properly. You can use this as an alternative to
nvm to easily switch node versions.