Google-cloud-node: Error node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.7.3/ ?

Created on 10 Jun 2018  Â·  16Comments  Â·  Source: googleapis/google-cloud-node

> sudo npm install google-cloud --unsafe-perm
> > [email protected] install /home/projects/project/node_modules/@google-cloud/firestore/node_modules/google-gax/node
> _modules/grpc
> > node-pre-gyp install --fallback-to-build --library=static_library
> node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.7.3/
> node-v64-linux-x64-glibc.tar.gz 
> node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, glibc) (falling back to
>  source compile with node-gyp) 
grpc.target.mk:399: recipe for target 'Release/obj.target/grpc/deps/grpc/src/core/tsi/ssl_transport_security.o' fail
ed
make: *** [Release/obj.target/grpc/deps/grpc/src/core/tsi/ssl_transport_security.o] Error 1
make: Leaving directory '/home/projects/upi_no_student/node_modules/@google-cloud/firestore/node_modules/google-gax/
node_modules/grpc/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/opt/bitnami/nodejs/lib/node_modules/npm/node_modules/node-gyp/lib/build.
js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12)
gyp ERR! System Linux 4.9.0-6-amd64
gyp ERR! command "/opt/bitnami/nodejs/bin/.node.bin" "/opt/bitnami/nodejs/lib/node_modules/npm/node_modules/node-gyp
/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/projects/upi_no_student/n
ode_modules/@google-cloud/firestore/node_modules/google-gax/node_modules/grpc/src/node/extension_binary/node-v64-lin
ux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/projects/upi_no_student/node_modules/@go
ogle-cloud/firestore/node_modules/google-gax/node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-glibc"
gyp ERR! cwd /home/projects/upi_no_student/node_modules/@google-cloud/firestore/node_modules/google-gax/node_modules
/grpc

> gyp ERR! node -v v10.1.0
> gyp ERR! node-gyp -v v3.6.2
> gyp ERR! not ok 
> node-pre-gyp ERR! build error 

> node-pre-gyp ERR! stack Error: Failed to execute '/opt/bitnami/nodejs/bin/.node.bin /opt/bitnami/nodejs/lib/node_mod
> ules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/pro
> jects/project/node_modules/@google-cloud/firestore/node_modules/google-gax/node_modules/grpc/src/node/extensi
> on_binary/node-v64-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/projects/projec
> t/node_modules/@google-cloud/firestore/node_modules/google-gax/node_modules/grpc/src/node/extension_binary/node-v64-
> linux-x64-glibc' (1)
> node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/projects/project/node_modules/@google-cloud/fi
> restore/node_modules/google-gax/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
> node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
> node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:957:16)
> node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:246:5)
> node-pre-gyp ERR! System Linux 4.9.0-6-amd64
> node-pre-gyp ERR! command "/opt/bitnami/nodejs/bin/.node.bin" "/home/projects/project/node_modules/@google-cl
> oud/firestore/node_modules/google-gax/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-bui
> ld" "--library=static_library"
> node-pre-gyp ERR! cwd /home/projects/project/node_modules/@google-cloud/firestore/node_modules/google-gax/nod
> e_modules/grpc
> node-pre-gyp ERR! node -v v10.1.0
> node-pre-gyp ERR! node-pre-gyp -v v0.6.39
> node-pre-gyp ERR! not ok
> Failed to execute '/opt/bitnami/nodejs/bin/.node.bin /opt/bitnami/nodejs/lib/node_modules/npm/node_modules/node-gyp/
> bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/projects/project/node_modul
> es/@google-cloud/firestore/node_modules/google-gax/node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-gl
> ibc/grpc_node.node --module_name=grpc_node --module_path=/home/projects/project/node_modules/@google-cloud/fi
> restore/node_modules/google-gax/node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-glibc' (1)
> npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
> npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":
> "any"} (current: {"os":"linux","arch":"x64"})
> npm ERR! code ELIFECYCLE
> npm ERR! errno 1
> npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build --library=static_library`
> npm ERR! Exit status 1
> npm ERR!
> npm ERR! Failed at the [email protected] 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!     /root/.npm/_logs/2018-06-10T19_10_00_247Z-debug.log


bug triage me

Most helpful comment

@sudhanshugaur4 So why was this issue closed? We are being prevented from being able to update our apps to a newer version of node because of this issue.

All 16 comments

Wanted to add that I'm running into a similar issue but on Node 8, not 10.

node-pre-gyp http GET https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v0.14.1/node-v57-linux-x64.tar.gz
node-pre-gyp http 403 https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v0.14.1/node-v57-linux-x64.tar.gz
node-pre-gyp ERR! Tried to download: https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v0.14.1/node-v57-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v0.14.1/node-v57-linux-x64.tar.gz

It then tries to compile it and fails due to this error

../src/node/ext/call.cc:616:20: error: ‘class v8::Object’ has no member named ‘SetHiddenValue’; did you mean ‘IntegerValue’?
       info.This()->SetHiddenValue(Nan::New("channel_").ToLocalChecked(),
                    ^~~~~~~~~~~~~~
                    IntegerValue
../src/node/ext/call.cc:625:19: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance(int, v8::Local<v8::Value>*) const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         argc, argv);
                   ^
In file included from /root/.node-gyp/8.11.1/include/node/v8.h:26:0,
                 from /root/.node-gyp/8.11.1/include/node/node.h:63,
                 from ../src/node/ext/call.cc:38:
/root/.node-gyp/8.11.1/include/node/v8.h:3847:31: note: declared here
                 Local<Object> NewInstance(int argc, Local<Value> argv[]) const);
                               ^
/root/.node-gyp/8.11.1/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
make: Leaving directory '/home/app/node_modules/grpc/build'
make: *** [grpc_node.target.mk:133: Release/obj.target/grpc_node/src/node/ext/call.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.9.87-linuxkit-aufs
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/app/node_modules/grpc/src/node/extension_binary/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/app/node_modules/grpc/src/node/extension_binary"
gyp ERR! cwd /home/app/node_modules/grpc
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/app/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/home/app/node_modules/grpc/src/node/extension_binary' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/app/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Linux 4.9.87-linuxkit-aufs
node-pre-gyp ERR! command "/usr/bin/node" "/home/app/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/app/node_modules/grpc
node-pre-gyp ERR! node -v v8.11.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.28
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/app/node_modules/grpc/src/node/extension_binary/grpc_node.node --module_name=grpc_node --module_path=/home/app/node_modules/grpc/src/node/extension_binary' (1)

This happens both on my Macbook Pro running OSX 10.13.3 and a Docker container running Debian Jessie. @google-cloud/[email protected] installs without any errors when I switch to Node 6.14.2.

Greetings! Generally, you don't want to install the top level google-cloud package, but rather use the individual packages for each service.

Are you seeing errors like this if you use something like npm install @google-cloud/bigquery?

Hi @JustinBeckwith. Yeah, I’m trying to install just the bigquery package. It gives the error above.

I tried to install these versions with --unsafe-perm and now there is no error.

Grpc-1.7.3, google-cloud-0.57.0

How does having to install something with --unsafe-perm solve an issue?

I am not saying --unsafe-perm did anything, just used them because otherwise, I was getting root access error when trying to install some packages.

@sudhanshugaur4 So why was this issue closed? We are being prevented from being able to update our apps to a newer version of node because of this issue.

@mpaw is spot on, why was this closed? Should we reopen with a new issue and the same conditions?

Anyone have a workaround?

@mpaw @oshalygin Sorry I didn't know how github works, I just thought as my issue was solved that's why I thought of closing it, Sorry for that I have reopened it OK :)

We're tracking this in #2830!

I had similar issue with Node v10, changing node to the stable version works for me.

I had similar issue with Node v10, changing node to the stable version works for me.

Same worked for me!

Don't think this issue should be closed, I'm running the node 8 LTS and gcloud fails to install at all. Your software is broken!

👋 @jk89. Can you share details? What npm module are you trying to install? What version of nodejs are you using? What error are you getting?

I was gone through same problem solved after lot efforts. It is because of npm version is not compatible with gprc version.
So we need to update the npm.

1 - npm update
2 - npm install

this solve my issue.
Thank you

Greetings folks! If you're still running into this, please create a new issue :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

charly37 picture charly37  Â·  3Comments

arbesfeld picture arbesfeld  Â·  4Comments

pputhran picture pputhran  Â·  4Comments

dsimmons picture dsimmons  Â·  4Comments

hvolschenk picture hvolschenk  Â·  4Comments