supermedium / moonrider

🌕🏄🏿 Surf the musical road among the stars. Side project built by two people in a few months to demonstrate WebXR.
https://moonrider.xyz
MIT License
570 stars 222 forks source link

grpc 1.19.0 no longer available #115

Closed AJMullican closed 3 years ago

AJMullican commented 3 years ago

When I try to "npm install" in moonrider-master directory, after downloading and unzipping the source, I get this error:

node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.19.0/node-v72-darwin-x64-unknown.tar.gz node-pre-gyp WARN Pre-built binaries not found for grpc@1.19.0 and node@12.18.3 (node-v72 ABI, unknown) (falling back to source compile with node-gyp)

Which leads it to this compile failure:

../ext/channel.cc:292:56: error: too few arguments to function call, expected 2, have 1 int try_to_connect = (int)info[0]->Equals(Nan::True());


/Users/amullica/Library/Caches/node-gyp/12.18.3/include/node/v8.h:2712:3: note: 'Equals' declared here
  V8_WARN_UNUSED_RESULT Maybe<bool> Equals(Local<Context> context,
  ^
/Users/amullica/Library/Caches/node-gyp/12.18.3/include/node/v8config.h:368:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
1 error generated.

which wouldn't be an issue (I don't think) if grpc was downloaded correctly.  From googling around it appears that 1.20.1 is a good build, although there may be a newer one.
AJMullican commented 3 years ago

I seem to have fixed that particular issue by installing node@10.

wernert commented 3 years ago

hello I have the same problem with node v12.18.3 on windows 10 verbose stack Error: grpc@1.19.0 install: node-pre-gyp install --fallback-to-build --library=static_library Am i correct: you solved it by installing node 10 ?

AJMullican commented 3 years ago

Yes you are correct. I had a typo in my previous comment.

brew install node@10