node.jsgoogle-apps-scriptadd-ongmail-addonsclasp

node-v57-linux-x64-glibc/grpc_node.node missing when using clasp on linux


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.


Solution

  • 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.