Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lacking gRPC #2

Open
JoshuaFox opened this issue Apr 29, 2018 · 6 comments
Open

Lacking gRPC #2

JoshuaFox opened this issue Apr 29, 2018 · 6 comments

Comments

@JoshuaFox
Copy link

I installed it through npm, but get the following. Should I be installing this myself? If so, how? (Node v.10.0.0)

$ google-cloud-gui 
/usr/local/lib/node_modules/google-cloud-gui/node_modules/grpc/src/grpc_extension.js:55
    throw error;
    ^

Error: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: node-v64-linux-x64-glibc
Found: [node-v48-linux-x64-glibc]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module '/usr/local/lib/node_modules/google-cloud-gui/node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-glibc/grpc_node.node'
    at Object.<anonymous> (/usr/local/lib/node_modules/google-cloud-gui/node_modules/grpc/src/grpc_extension.js:53:17)
    at Module._compile (internal/modules/cjs/loader.js:678:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
    at Module.load (internal/modules/cjs/loader.js:589:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
    at Function.Module._load (internal/modules/cjs/loader.js:520:3)
    at Module.require (internal/modules/cjs/loader.js:626:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/google-cloud-gui/node_modules/grpc/src/client.js:37:12)
    at Module._compile (internal/modules/cjs/loader.js:678:30)

@GabiAxel
Copy link
Owner

I think I got it too when using Node 10, but not 8 (though with 8 I encountered #1). I didn't get to fix it yet, so the most reliable solution I can suggest is to use Yarn.

@JoshuaFox
Copy link
Author

OK, switched to

$ node -v
v8.9.4

(yarn global add google-cloud-gui had failed earlier, but this Node version let me run that.)

However, I still get that gRPC error.

I also get the error if I remove this in yarn and then install using npm i -g google-cloud-gui

@GabiAxel
Copy link
Owner

Before you installed it again, did you uninstall it? First ensure it is uninstalled by both npm and Yarn (they install global libraries in different locations, but the symlink to the executable command can only reference one of them, which you can see by running ls -l /usr/local/bin/google-cloud-gui), and then try Yarn again.

If that fails too, until we find a proper solution, you can download the repository and build it locally as described at the end of Development section.

@JoshuaFox
Copy link
Author

I succeeded! I saw my Kinds -- wonderful tool!

Among the tricks I tried was the --unsafe-perm parameter. That may have made the difference

@JoshuaFox
Copy link
Author

In case this helps others who come after me -- the tool is installed for me at ~/.nvm/versions/node/v8.9.4/lib/node_modules/google-cloud-gui/

@calsmith
Copy link

calsmith commented Jul 8, 2018

Same error here, the solutions listed above didn't solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants