如何在全球范围内“ npm rebuild”?

时间:2019-07-29 05:41:41

标签: node.js npm

我通过

在全球安装了最新的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,似乎只构建了一些本地软件包,如何重建全局软件包?

0 个答案:

没有答案