"npm install rsocket-rpc-protobuf" fails on macOS

I can’t install rsocket-rpc-protobuf via npm on macOS 10.14.6. I tried to build it manually also with gcc-9, but the errors stay the same.

Any hints how to install it?

$ npm install rsocket-rpc-protobuf                              
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

> rsocket-rpc-protobuf@0.1.6 install /Users/james/devel/hello-service-idl/node_modules/rsocket-rpc-protobuf
> prebuild-install || cmake-js rebuild

prebuild-install WARN install No prebuilt binaries found (target=13.12.0 runtime=node arch=x64 libc= platform=darwin)
[
'/usr/local/Cellar/node/13.12.0/bin/node',
'/Users/james/devel/hello-service-idl/node_modules/.bin/cmake-js',
'rebuild'
]
info TOOL Using Ninja generator, because ninja is available.
info CMD CLEAN
info RUN cmake -E remove_directory "/Users/james/devel/hello-service-idl/node_modules/rsocket-rpc-protobuf/build"
info CMD CONFIGURE
info RUN cmake "/Users/james/devel/hello-service-idl/node_modules/rsocket-rpc-protobuf" --no-warn-unused-cli -G"Ninja" -DCMAKE_JS_VERSION="5.3.2" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/Users/james/devel/hello-service-idl/node_modules/rsocket-rpc-protobuf/build/Release" -DCMAKE_JS_INC="/Users/james/.cmake-js/node-x64/v13.12.0/include/node" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="13.12.0" -DNODE_ARCH="x64" -DCMAKE_CXX_FLAGS="-D_DARWIN_USE_64_BIT_INODE=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILDING_NODE_EXTENSION" -DCMAKE_SHARED_LINKER_FLAGS="-undefined dynamic_lookup"
Not searching for unused variables given on the command line.
-- The C compiler identification is AppleClang 11.0.0.11000020
-- The CXX compiler identification is AppleClang 11.0.0.11000020
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Protobuf: /usr/local/lib/libprotobuf.a (found version "3.11.4") 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/james/devel/hello-service-idl/node_modules/rsocket-rpc-protobuf/build
info CMD BUILD
info RUN cmake --build "/Users/james/devel/hello-service-idl/node_modules/rsocket-rpc-protobuf/build" --config Release
[1/4] Building CXX object CMakeFiles/rsocket_rpc_js_plugin.dir/src/rsocket/options.pb.cc.o
FAILED: CMakeFiles/rsocket_rpc_js_plugin.dir/src/rsocket/options.pb.cc.o 
/Library/Developer/CommandLineTools/usr/bin/c++   -I/usr/local/include -D_DARWIN_USE_64_BIT_INODE=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILDING_NODE_EXTENSION -pthread -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk   -std=gnu++11 -MD -MT CMakeFiles/rsocket_rpc_js_plugin.dir/src/rsocket/options.pb.cc.o -MF CMakeFiles/rsocket_rpc_js_plugin.dir/src/rsocket/options.pb.cc.o.d -o CMakeFiles/rsocket_rpc_js_plugin.dir/src/rsocket/options.pb.cc.o -c ../src/rsocket/options.pb.cc
In file included from ../src/rsocket/options.pb.cc:4:
../src/rsocket/options.pb.h:118:56: error: only virtual member functions can be marked 'final'
    ::google::protobuf::io::CodedInputStream* input) final;
                                                    ^~~~~
../src/rsocket/options.pb.h:120:64: error: only virtual member functions can be marked 'final'
    ::google::protobuf::io::CodedOutputStream* output) const final;
                                                            ^~~~~
../src/rsocket/options.pb.h:122:68: error: only virtual member functions can be marked 'final'
    bool deterministic, ::google::protobuf::uint8* target) const final;
                                                                ^~~~~
../src/rsocket/options.pb.cc:11:10: fatal error: 'google/protobuf/wire_format_lite_inl.h' file not found
#include <google/protobuf/wire_format_lite_inl.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.
[2/4] Building CXX object CMakeFiles/rsocket_rpc_js_plugin.dir/src/js_generator.cc.o
FAILED: CMakeFiles/rsocket_rpc_js_plugin.dir/src/js_generator.cc.o 
/Library/Developer/CommandLineTools/usr/bin/c++   -I/usr/local/include -D_DARWIN_USE_64_BIT_INODE=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILDING_NODE_EXTENSION -pthread -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk   -std=gnu++11 -MD -MT CMakeFiles/rsocket_rpc_js_plugin.dir/src/js_generator.cc.o -MF CMakeFiles/rsocket_rpc_js_plugin.dir/src/js_generator.cc.o.d -o CMakeFiles/rsocket_rpc_js_plugin.dir/src/js_generator.cc.o -c ../src/js_generator.cc
In file included from ../src/js_generator.cc:22:
../src/rsocket/options.pb.h:118:56: error: only virtual member functions can be marked 'final'
    ::google::protobuf::io::CodedInputStream* input) final;
                                                    ^~~~~
../src/rsocket/options.pb.h:120:64: error: only virtual member functions can be marked 'final'
    ::google::protobuf::io::CodedOutputStream* output) const final;
                                                            ^~~~~
../src/rsocket/options.pb.h:122:68: error: only virtual member functions can be marked 'final'
    bool deterministic, ::google::protobuf::uint8* target) const final;
                                                                ^~~~~
3 errors generated.
[3/4] Building CXX object CMakeFiles/rsocket_rpc_js_plugin.dir/src/js_plugin.cc.o
ninja: build stopped: subcommand failed.
ERR! OMG Process terminated: 1
npm WARN enoent ENOENT: no such file or directory, open '/Users/james/devel/hello-service-idl/package.json'
npm WARN hello-service-idl No description
npm WARN hello-service-idl No repository field.
npm WARN hello-service-idl No README data
npm WARN hello-service-idl No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rsocket-rpc-protobuf@0.1.6 install: `prebuild-install || cmake-js rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the rsocket-rpc-protobuf@0.1.6 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/james/.npm/_logs/2020-04-18T13_32_53_661Z-debug.log

I don’t have a host running 10.14 on it anymore, but I might be able to try and reproduce this issue later today.

Did you get the NodeJS Get started working?

I get fatal errors on build.