https://github.com/fritx/secret/issues/15#issuecomment-214976707 https://github.com/nwjs/npm-installer/blob/master/lib/findpath.js ``` js // todo: 额外创建一个库 尽可能搜索正确的nwPath 包括目标应用所包含的nw // nwPath || which.sync('nw'), // nwPath || require('nw').findpath(), ```
https://github.com/fritx/secret/issues/15#issuecomment-214976707
https://github.com/nwjs/npm-installer/blob/master/lib/findpath.js