Skip to content

400 error trying to install on mac #1269

@EdTriplett

Description

@EdTriplett

Problem description

I get a 400 error when trying to install

Reproduction steps

'npm i grpc --registry=https://registry.npmjs.org'

Environment

  • OS name, version and architecture: [e.g. Linux Ubuntu 18.04 amd64]: MacOS Mojave 10.14.2 x86_64
  • Node version [e.g. 8.10.0]: 8.12, with same result on 12.16.1 and 13.6.0
  • Node installation method [e.g. nvm]: nvm
  • Package name and version: grpc@1.24.2

Additional context

I specify the registry in the command line because I have an enterprise registry as default.
I get the same issue when using --build-from-source.
The 'unused parameter warnings' below continue seemingly to infinity, until I control^c to kill it.
This resembles #1227, but I use an older version of node and try to install the latest grpc

tdd-infra🌘$ npm i grpc --registry=https://registry.npmjs.org

> grpc@1.24.2 install /Users/trip/coding/tdd-infra/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp WARN Using needle for node-pre-gyp https download 
node-pre-gyp WARN Tried to download(400): https://node-precompiled-binaries.grpc.io/grpc/v1.24.2/node-v57-darwin-x64-unknown.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for grpc@1.24.2 and node@8.12.0 (node-v57 ABI, unknown) (falling back to source compile with node-gyp) 
  CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
In file included from ../deps/grpc/src/core/lib/surface/init.cc:29:
In file included from ../deps/grpc/src/core/lib/channel/channel_stack.h:44:
In file included from ../deps/grpc/src/core/lib/debug/trace.h:27:
In file included from ../deps/grpc/src/core/lib/gprpp/global_config.h:92:
In file included from ../deps/grpc/src/core/lib/gprpp/global_config_env.h:24:
In file included from ../deps/grpc/src/core/lib/gprpp/global_config_generic.h:24:
../deps/grpc/src/core/lib/gprpp/memory.h:116:56: warning: unused parameter 'hint' [-Wunused-parameter]
                   std::allocator<void>::const_pointer hint = nullptr) {
                                                       ^
../deps/grpc/src/core/lib/gprpp/memory.h:119:37: warning: unused parameter 'n' [-Wunused-parameter]
  void deallocate(T* p, std::size_t n) { gpr_free(p); }
                                    ^
In file included from ../deps/grpc/src/core/lib/surface/init.cc:29:
In file included from ../deps/grpc/src/core/lib/channel/channel_stack.h:44:
../deps/grpc/src/core/lib/debug/trace.h:119:37: warning: unused parameter 'default_enabled' [-Wunused-parameter]
  constexpr DebugOnlyTraceFlag(bool default_enabled, const char* name) {}
                                    ^
../deps/grpc/src/core/lib/debug/trace.h:119:66: warning: unused parameter 'name' [-Wunused-parameter]
  constexpr DebugOnlyTraceFlag(bool default_enabled, const char* name) {}
                                                                 ^
../deps/grpc/src/core/lib/debug/trace.h:124:25: warning: unused parameter 'enabled' [-Wunused-parameter]
  void set_enabled(bool enabled) {}
                        ^
In file included from ../deps/grpc/src/core/lib/surface/init.cc:29:
In file included from ../deps/grpc/src/core/lib/channel/channel_stack.h:47:
In file included from ../deps/grpc/src/core/lib/iomgr/call_combiner.h:30:
../deps/grpc/src/core/lib/gprpp/ref_counted.h:83:59: warning: unused parameter 'trace_flag' [-Wunused-parameter]
  constexpr explicit RefCount(Value init = 1, TraceFlagT* trace_flag = nullptr)
                                                          ^
../deps/grpc/src/core/lib/gprpp/ref_counted.h:103:33: warning: unused parameter 'location' [-Wunused-parameter]
  void Ref(const DebugLocation& location, const char* reason, Value n = 1) {
                                ^
../deps/grpc/src/core/lib/gprpp/ref_counted.h:103:55: warning: unused parameter 'reason' [-Wunused-parameter]
  void Ref(const DebugLocation& location, const char* reason, Value n = 1) {
                                                      ^
../deps/grpc/src/core/lib/gprpp/ref_counted.h:129:40: warning: unused parameter 'location' [-Wunused-parameter]
  void RefNonZero(const DebugLocation& location, const char* reason) {
                                       ^
../deps/grpc/src/core/lib/gprpp/ref_counted.h:129:62: warning: unused parameter 'reason' [-Wunused-parameter]
  void RefNonZero(const DebugLocation& location, const char* reason) {
                                                             ^
../deps/grpc/src/core/lib/gprpp/ref_counted.h:153:42: warning: unused parameter 'location' [-Wunused-parameter]
  bool RefIfNonZero(const DebugLocation& location, const char* reason) {
                                         ^
../deps/grpc/src/core/lib/gprpp/ref_counted.h:153:64: warning: unused parameter 'reason' [-Wunused-parameter]
  bool RefIfNonZero(const DebugLocation& location, const char* reason) {
                                                               ^
../deps/grpc/src/core/lib/gprpp/ref_counted.h:184:35: warning: unused parameter 'location' [-Wunused-parameter]
  bool Unref(const DebugLocation& location, const char* reason) {
                                  ^
../deps/grpc/src/core/lib/gprpp/ref_counted.h:184:57: warning: unused parameter 'reason' [-Wunused-parameter]
  bool Unref(const DebugLocation& location, const char* reason) {
                                                        ^
In file included from ../deps/grpc/src/core/lib/surface/init.cc:29:
In file included from ../deps/grpc/src/core/lib/channel/channel_stack.h:48:
In file included from ../deps/grpc/src/core/lib/iomgr/polling_entity.h:24:
In file included from ../deps/grpc/src/core/lib/iomgr/pollset.h:27:
../deps/grpc/src/core/lib/iomgr/exec_ctx.h:228:37: warning: unused parameter 'p' [-Wunused-parameter]
  static void operator delete(void* p) { abort(); }
                                    ^
../deps/grpc/src/core/lib/surface/init.cc:199:35: warning: unused parameter 'ignored' [-Wunused-parameter]
void grpc_shutdown_internal(void* ignored) {
                                  ^
16 warnings generated.
  CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o
../deps/grpc/src/core/lib/avl/avl.cc:297:43: warning: unused parameter 'user_data' [-Wunused-parameter]
grpc_avl grpc_avl_ref(grpc_avl avl, void* user_data) {
                                          ^
1 warning generated.
  CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/backoff/backoff.o
^Cmake: *** [Release/obj.target/grpc/deps/grpc/src/core/lib/backoff/backoff.o] Interrupt: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions