0

I'm using clasp to build an add-on gmail.

I created a empty folder and run this command:

clasp login

I have an error like this

Error: The gRPC binary module was not installed. This may be fixed by running "npm rebuild" Original error: Cannot find module '/usr/lib/node_modules/@google/clasp/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc/grpc_node.node'

I found a question but it is not a solution for me.

How can i fix?

Thanks.

phambaonam
  • 45
  • 2
  • 8
  • Does this answer your question? [NodeJs Error - Failed to load gRPC binary module because it was not installed for the current system Expected directory?](https://stackoverflow.com/questions/49758008/nodejs-error-failed-to-load-grpc-binary-module-because-it-was-not-installed-fo) – Devendra Rajput Mar 09 '21 at 05:22

1 Answers1

5

I had the same issue today and it seems I've found a workaround: The following commands seem to fix the issue:

    cd /usr/local/lib/node_modules/grpcc/node_modules/grpc/src
    sudo npm --unsafe-perm install

Though the installation process finished with errors, the missing file was there and the grpcc was working.

  • yes, I've just found a solution from https://github.com/grpc/grpc-node/issues/188, then i ran `sudo npm i @google/clasp -g --unsafe-perm`, it worked. – phambaonam May 24 '18 at 03:01