Building a native C++ module for Node.js
bash
npm install -g node-gypnpm install -g node-gypbash
cd my_native_modulecd my_native_modulebash
node-gyp configure # 生成 binding.gyp 文件node-gyp configure # 生成 binding.gyp 文件bash
node-gyp build --debug # debug 模式编译指令
node-gyp build # release 模式编译指令node-gyp build --debug # debug 模式编译指令
node-gyp build # release 模式编译指令