title: ERR_DLOPEN_FAILED When trying to make a node native addon
body: <p>I was attempting to make a node native addon and <code>node-gyp configure build</code> worked fine, when i required the test addon in a javascript file and ran it normally with <code>node main</code> it then gives the error <code>Error: Module did not self register, code: ERR_DLOPEN_FAILED</code> here is my code so far:</p>
  <p>binding.gyp</p>
  <pre><code>{
      &quot;targets&quot;: [
          {
              &quot;target_name&quot;: &quot;hello&quot;,
              &quot;source&quot;: [&quot;hello.cc&quot;]
          }
      ]
  }
  </code></pre>
  <p>hello.cc</p>
  <pre><code>#include &lt;node/node.h&gt;
  #include &lt;node/v8.h&gt;
  
  using namespace v8;
  
  void Method(const FunctionCallbackInfo&lt;Value&gt;&amp;args) {
    Isolate* isolate = args.GetIsolate();
    args.GetReturnValue().Set(String::NewFromUtf8(isolate, &quot;world&quot;).ToLocalChecked());
  }
  
  void Initialize(Local&lt;Object&gt; exports) {
    NODE_SET_METHOD(exports, &quot;hello&quot;, Method);
  }
  
  NODE_MODULE(NODE_GYP_MODULE_NAME, Initialize);
  </code></pre>
  <p>main.js</p>
  <pre><code>const hello = require(&quot;./build/Release/hello&quot;);
  console.log(hello.hello())
  </code></pre>
  <p>How do i fix this error? Thanks.</p>