google-cloud-node: Error node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.7.3/ ?
This seems to occur with Node V10+
This issue is identical but it involves every single @google/* package: https://github.com/GoogleCloudPlatform/google-cloud-node/issues/2826
Environment details
- OS: OSX
- Node.js version: v10.2.0
- npm version: 5.6.0
- google-cloud-node version:
"@google-cloud/logging": "1.2.0",
"@google-cloud/storage": "1.7.0",
"@google-cloud/trace-agent": "2.10.1",
Steps to reproduce
npm install any of these:
"@google-cloud/logging": "1.2.0",
"@google-cloud/storage": "1.7.0",
"@google-cloud/trace-agent": "2.10.1",
Thanks!
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 21 (2 by maintainers)
@crwilcox thanks for looking into this, apologies for the late reply. I was able to solve this earlier in the day by bumping all of these package versions:
Steps to fix this for anyone else reading:
Obvs use the alternative with npm if you’re going to use npm.
Make sure the package versions are fixed and they are the ones listed above.
Running this successfully with Node.js v10.2.0
I had similar issue with Node v10, changing node to the stable version works for me.
@thebly86 go through your package.json and eliminate all that you don’t use first, then remove your node_modules/ and package-lock.json and finally run npm update in your project directory. I tried everything mentioned above but it turned out it was just a matter of updating my modules
I can’t reproduce your failures for any package. I can make this fail installing
google-cloud
as is stated in #2826.The root of the issue seems to be
npm install grpc@1.7.3
(which occurs as a dependency ofnpm install @google-cloud/firestore@^0.8.0
which is a dependency ofnpm install google-cloud@0.57.0
. That version of grpc, which is a bit old, doesn’t have a binary prebuilt. The current version,grpc@1.13.0-pre1
installs without issue.@oshalygin, Can you confirm that with a blank directory you are unable to install of
@google-cloud/logging
? If not, I am going to scope this back to just installation issues withgoogle-cloud
as it seems its install of firestoreOutput of installing GRPC v1.7.3
I can confirm that changing the versions solved it for me. In my case: