grpc-node/packages/grpc-native-core
Kelvin Jin 11416e9d70 missed require change 2017-12-06 15:29:56 -08:00
..
deps Update master to 1.9.0-dev 2017-11-30 12:57:20 -08:00
ext Update a core header inclusion to stop using extern C 2017-11-30 14:01:05 -08:00
interop Copy API tests back to grpc-native-core 2017-12-06 13:20:42 -08:00
src Improve message wording 2017-11-29 16:57:13 -08:00
templates Merge remote-tracking branch 'google/v1.7.x' into upmerge 2017-11-17 22:39:17 +01:00
test missed require change 2017-12-06 15:29:56 -08:00
tools Resolve comments 2017-11-29 16:34:34 -08: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 Update master to 1.9.0-dev 2017-11-30 12:57:20 -08:00
gulpfile.js try new links 2017-10-25 13:15:59 -07:00
index.d.ts Fixed name of ServerCredentials.createSsl in native docs & types. 2017-11-08 09:41:55 +00:00
index.js Fixed name of ServerCredentials.createSsl in native docs & types. 2017-11-08 09:41:55 +00:00
jsdoc_conf.json Move dependencies around, add gulp target for document generation 2017-09-20 12:39:16 -07:00
package.json Copy API tests back to grpc-native-core 2017-12-06 13:20:42 -08: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.