# Setup ## Prerequisites Before starting to use **Node-API** you need to assure you have the following prerequisites: * **Node.JS** see: [Installing Node.js](/) * **Node.js native addon build tool** - **[node-gyp](node-gyp.md)** ## Installation and usage To use **Node-API** in a native module: 1. Add a dependency on this package to `package.json`: ```json "dependencies": { "node-addon-api": "*", } ``` 2. Decide whether the package will enable C++ exceptions in the Node-API wrapper, and reference this package as a dependency in `binding.gyp`. The base ABI-stable C APIs do not throw or handle C++ exceptions, but the Node-API C++ wrapper classes may _optionally_ [integrate C++ and JavaScript exception-handling ](/node-addon-api/blob/HEAD/doc/error_handling.md). To use without C++ exceptions, add the following to `binding.gyp`: ```gyp 'dependencies': [ "