title: nodejs napi module did not self register
body: <p>when i try to test nodejs N-API modules, the has a error to me:<br>
  my addon.c file is that:  </p>
  
  <pre><code>#include &lt;node_api.h&gt;
  
  napi_value HelloMethod (napi_env env, napi_callback_info info) {
    napi_value world;
    napi_create_string_utf8(env, "world", 5, &amp;world);
    return world;
  }
  
  void Init (napi_env env, napi_value exports, napi_value module, void* priv) {
    napi_property_descriptor desc = { "hello", 0, HelloMethod, 0, 0, 0, napi_default, 0 };
    napi_define_properties(env, exports, 1, &amp;desc);
  }
  
  NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)
  </code></pre>
  
  <p>my binding.gyp file is:</p>
  
  <pre><code>{
    "targets": [
      {
        "target_name": "addon",
        "source": ["addon.c"]
      }
    ]
  }
  </code></pre>
  
  <p>and when i use require('./build/Release/addon') to call addon modules, the error info is :</p>
  
  <pre><code>Error: Module did not self-register.
      at Object.Module._extensions..node (internal/modules/cjs/loader.js:707:18)
      at Module.load (internal/modules/cjs/loader.js:589:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
      at Function.Module._load (internal/modules/cjs/loader.js:520:3)
      at Module.require (internal/modules/cjs/loader.js:626:17)
      at require (internal/modules/cjs/helpers.js:20:18)
  </code></pre>
  
  <p>has anyone can help me? tanks</p>