我通过
在全球安装了最新的grpc-man
npm i grpc-man -g
现在执行时
grpc-man user.examplecom:80 proto/example.proto 'args'
我知道
Error: Failed to load gRPC binary module because it was not installed for the current system
Expected directory: node-v64-darwin-x64-unknown
Found: [node-v57-darwin-x64-unknown]
This problem can often be fixed by running "npm rebuild" on the current system
Original error: Cannot find module '/usr/local/lib/node_modules/grpc-man/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node'
但是如果我运行npm rebuild
,似乎只构建了一些本地软件包,如何重建全局软件包?