grpc-node/packages/grpc-native-core
murgatroid99 0210f160ed Fix object lifetime and memory management problems in server code 2018-04-02 14:37:35 -07:00
..
deps Update to v1.10.0 2018-03-09 10:44:52 -08:00
ext Fix object lifetime and memory management problems in server code 2018-04-02 14:37:35 -07:00
src Merge pull request #207 from theogravity/master 2018-03-13 17:13:52 -07:00
templates Hide symbols. 2018-03-28 19:34:35 +02:00
test Remove now-duplicate interop sanity test file 2018-03-08 18:15:31 -08:00
tools Merge branch 'v1.10.x' of https://github.com/grpc/grpc-node into upmerge 2018-03-15 01:42:49 +01:00
.jshintignore Moving files into their new location. 2017-09-12 01:33:18 +02:00
.npmignore Remove some unnecessary files from the native npm package 2017-09-19 11:18:00 -07:00
README.md Update package descriptions in README, add API docs link 2017-09-14 13:03:21 -07:00
binding.gyp Hide symbols. 2018-03-28 19:34:35 +02:00
build.yaml Merge branch 'v1.10.x' of https://github.com/grpc/grpc-node into upmerge 2018-03-15 01:42:49 +01:00
gulpfile.js simplify gulp commands in package directories 2017-12-14 16:41:24 -08:00
index.d.ts Fix usage of Protobuf.js Message type in TS file 2018-02-09 11:12:27 -08:00
index.js FIX-MISSING-FILE adding error handling for missing files on load 2018-03-16 09:58:53 -06:00
jsdoc_conf.json Move dependencies around, add gulp target for document generation 2017-09-20 12:39:16 -07:00
package.json Downgrading node-pre-gyp. 2018-03-20 19:28:44 +01:00

README.md

npm

Node.js gRPC Library

PREREQUISITES

  • node: This requires node to be installed, version 4.0 or above. If you instead have the nodejs executable on Debian, you should install the nodejs-legacy package.

  • Note: If you installed node via a package manager and the version is still less than 4.0, try directly installing it from nodejs.org.

INSTALLATION

Install the gRPC NPM package

npm install grpc

BUILD FROM SOURCE

  1. Clone the grpc Git Repository.
  2. Run npm install --build-from-source from the repository root.
  • Note: On Windows, this might fail due to nodejs issue #4932 in which case, you will see something like the following in npm install's output (towards the very beginning):

     ..
     Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
     WINDOWS_BUILD_WARNING
      "..\IMPORTANT: Due to https:\github.com\nodejs\node\issues\4932, to build this library on Windows, you must first remove C:\Users\jenkins\.node-gyp\4.4.0\include\node\openssl"
      ...
      ..
    

    To fix this, you will have to delete the folder C:\Users\<username>\.node-gyp\<node_version>\include\node\openssl and retry npm install

API DOCUMENTATION

See the API Documentation.

TESTING

To run the test suite, simply run npm test in the install location.