That error came from “gyp”. This is the tool within npm that is responsible for compiling native C modules for use on the current platform. For most operating systems, “prebuilds” are available which are automatically downloaded, avoiding the compilation step, but when gyp is needed it requires a C compiler and associated tools to be installed. On a Mac, that typically means that Xcode needs to be installed. In your case, the error mentions “android_ndk_path” not being installed, which suggests that it would be worth manually installing the Android NDK and trying again.
However, it may be possible to work around the error. The error is occurring with the better-sqlite3 module, which is mostly written in C, and hence runs into the gyp issue. MWS also supports the alternate database engine node-sqlite3-wasm which has the advantage that it is written in pure JS, using WASM to run sqlite itself. The disadvantage is that WASM is not available in some environments (notably iOS due to the restrictions on JIT compilers).
I’ve added some docs to the site to troubleshoot these issues and explain the workaround.