Node -v59-linux-x64 / grpc_node.node is missing

I am trying to use the Firebase admin SDK on my server. When I deploy, I get an error: I miss the file node -v59-linux-x64 / grpc_node.node in the host-host map of firebase-admin. I added "grpc": "1.7.1" in my package, but I still do not get this file after updating NPM. I get an older version, node -v57. I also checked this path https://registry.npmjs.org/grpc/-/grpc-1.7.1.tgz , but I could not find the file. I removed the node_modules map and ran npm again, but not node -v59.

How / where can I download this file? Is there anyone who can put the file here so that I can manually add it?

Error: cannot find module '/ data / app / node_modules / grpc / src / node / extension_binary / node-v59-linux-x64 / grpc_node.node'

+4
source share
2 answers
0
source

This problem usually occurs due to installing the library on one system, and then deploying and running it on another system that requires a different binary.

The simplest solution to this problem is to run npm rebuildafter deployment on a deployed system.

, npm rebuild , , npm install . --target Node. --target=9.0.0 Node 9 ( ). --target_platform : windows, linux darwin (Mac). --target_arch : ia32, x64 arm. , , --target_libc , libc: glibc musl ( Alpine Linux).

, ,

npm install --target=9.0.0 --target_platform=linux --target_arch=x64
+2

Source: https://habr.com/ru/post/1689407/


All Articles