nwjs / nw-gyp

native addon build tool for node-webkit
MIT License
195 stars 50 forks source link

Invalid path on some pcs for modules with path prepended "\\?\" #104

Closed matthewn4444 closed 7 years ago

matthewn4444 commented 7 years ago

Hello,

I have two PCs running Windows 10, one is barebones with no NW js environment and the other (my development machine) has the correct environment. Running the code nw.exe on the barebones PC has an error when loading a module while the development machine does not.

It tries to find the module with a prepended path of "\\?\". So for example, it would try to load the path from "\\?\C:\path\to\my\app\module.node". Which then it would not find the module and just crash.

People who are using my app cannot run it because of the path error. Am I doing something wrong?

My code is here and here.

Thanks.

ghostoy commented 7 years ago

Does it happen when built with node-gyp ? If so, please submit the issue to https://github.com/nodejs/node-gyp. We'll merge the fixes from upstream then.

matthewn4444 commented 7 years ago

Sorry, I built it incorrectly. I will close this.