electron(electron-vue)环境下配置gRPC

1.package.json添加以下依赖

"dependencies": {
    "async": "^1.5.2",
    "google-protobuf": "^3.0.0",
    "lodash": "^4.6.1",
    "minimist": "^1.2.0",
    "grpc": "^1.0.0"
  }

2.安装依赖

$ npm install

3.编译gRPC

$ npm install electron-rebuild --save-dev
$ ./node_modules/.bin/electron-rebuild

你可能感兴趣的:(electron(electron-vue)环境下配置gRPC)