Experience-Monks / devtool

[OBSOLETE] runs Node.js programs through Chromium DevTools
MIT License
3.77k stars 150 forks source link

Supporting NODE_PATH #31

Open mattdesl opened 8 years ago

mattdesl commented 8 years ago

This is related to #6.

When Electron initializes the Module paths, it will grab everything from NODE_PATH and merge it with the user's home dirs.

However, at some point in execution, this Module.globalPaths is mutated and replaced with a new set of paths pointing to electron globals so that require('electron') will work. It is unclear where this mutation is happening, and at what point we need to re-patch the Module.globalPaths array to fix this.

To recap, these two features are broken right now: