Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REMOTE.require() not working #48

Closed
manikantag opened this issue Dec 30, 2016 · 4 comments
Closed

REMOTE.require() not working #48

manikantag opened this issue Dec 30, 2016 · 4 comments
Labels

Comments

@manikantag
Copy link

Please describe your issue:
When I require some module from renderer process, it is working fine. But if I require and remote module (which is already loaded in main process) from renderer process, exception is seen.

Console output when you run electron-forge with the environment variable DEBUG=electron-forge:*. (Instructions on how to do so here. Please include the stack trace if one exists.

Command prompt output: Pasted in next comment to keep the actual issue statement tidy.

Browser window console logs:

c:\eapp\node_modules\electron-prebuilt-compile\node_mo…:217 Uncaught Error: Cannot find module './services/sqlite-dao'
Error: Cannot find module './services/sqlite-dao'
    at Module._resolveFilename (module.js:455:15)
    at Function.Module._resolveFilename (c:\eapp\node_modules\electron-prebuilt-compile\node_modules\electron\dist\resources\electron.asar\common\reset-search-paths.js:35:12)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at EventEmitter.<anonymous> (c:\eapp\node_modules\electron-prebuilt-compile\node_modules\electron\dist\resources\electron.asar\browser\rpc-server.js:241:70)
    at emitTwo (events.js:106:13)
    at EventEmitter.emit (events.js:191:7)
    at WebContents.<anonymous> (c:\eapp\node_modules\electron-prebuilt-compile\node_modules\electron\dist\resources\electron.asar\browser\api\web-contents.js:231:13)
    at emitTwo (events.js:106:13)
    at WebContents.emit (events.js:191:7)metaToValue @ c:\eapp\node_modules\electron-prebuilt-compile\node_mo…:217exports.require @ c:\eapp\node_modules\electron-prebuilt-compile\node_mo…:304(anonymous function) @ bo-login.js:4(anonymous function) @ bo-login.js:61

What command line arguments are you passing?

None specifically.

What does your config.forge data in package.json look like?

"forge": {
    "make_targets": {
        "win32": ["squirrel"],
        "darwin": ["zip"],
        "linux": ["deb","rpm"]
    },
    "electronPackagerConfig": {
        "ignore": [
            "node_modules/sqlite3/build",
            "node_modules/sqlite3/deps",
            "node_modules/sqlite3/src"
        ]
    },
    "electronWinstallerConfig": {
        "name": "eapp",
        "loadingGif": "./assets/img/install-splash.png",
        "iconUrl": "http://manikanta.com/favicon.ico",
        "setupIcon": "./assets/img/icon.ico",
        "noMsi": true
    },
    "electronInstallerDebian": {},
    "electronInstallerRedhat": {}
}

Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem. Using electron-forge init is a good starting point, if that is not the
source of your problem.

bo-login.js code:

const dao = REMOTE.require('./services/sqlite-dao'); // --> module load error
const cryptoUtils = require('./assets/js/utils/crypto-utils'); // --> module is loaded fine

Here REMOTE is a global property which was set in BrowserWindow.webPreferences.preload.

main.js code:

const win = new BrowserWindow({
    ...
    webPreferences: {
        preload: path.resolve(path.join(__dirname, 'preload.js'))
    }
})

preload.js code:

var _remote = require('electron').remote
process.once('loaded', () => {
    global.REMOTE = _remote
})
@manikantag
Copy link
Author

Command prompt output:

c:\eapp>node_modules\.bin\electron-forge.cmd start
WARNING: DEBUG environment variable detected.  Progress indicators will be sent over electron-forge:lifecycle
√ Checking your System
  electron-forge:runtime-config setting key: verbose to value: false +0ms
WARNING: DEBUG environment variable detected.  Progress indicators will be sent over electron-forge:lifecycle
  electron-forge:lifecycle Process Started: Locating Application +0ms
  electron-forge:project-resolver searching for project in: c:\eapp +7ms
  electron-forge:project-resolver electron-forge compatible package.json found in c:\eapp\package.json +8ms
  electron-forge:lifecycle Process Succeeded: Locating Application +1ms
  electron-forge:lifecycle Process Started: Preparing native dependencies 0/0 +2ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\angular-websocket +2ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\bcryptjs +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\bluebird +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\devtron +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\electron-compile +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\electron-debug +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\electron-devtools-installer +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\electron-is-dev +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\electron-window-state +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\lodash +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3 +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\nan +8ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\nopt +4ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\rc +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\nopt\node_modules\abbrev +3ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\are-we-there-yet +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\console-control-strings +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\set-blocking +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar\node_modules\block-stream +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar\node_modules\fstream +2ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar\node_modules\inherits +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\rc\node_modules\deep-extend +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\rc\node_modules\ini +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\rc\node_modules\minimist +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\rc\node_modules\strip-json-comments +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\fstream-ignore +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\once +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\readable-stream +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\uid-number +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\inherits +6ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\minimist +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\strip-json-comments +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\once +5ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\readable-stream +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\are-we-there-yet\node_modules\delegates +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\aproba +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\has-color +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\has-unicode +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\object-assign +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\signal-exit +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\string-width +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\strip-ansi +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\wide-align +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar\node_modules\fstream\node_modules\graceful-fs +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\fstream-ignore\node_modules\minimatch +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\once\node_modules\wrappy +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\readable-stream\node_modules\buffer-shims +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\readable-stream\node_modules\core-util-is +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\readable-stream\node_modules\isarray +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\readable-stream\node_modules\process-nextick-args +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\readable-stream\node_modules\string_decoder +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\readable-stream\node_modules\util-deprecate +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\code-point-at +14ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\is-fullwidth-code-point +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\strip-ansi\node_modules\ansi-regex +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\fstream-ignore\node_modules\minimatch\node_modules\brace-expansion +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\object-assign +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\string-width +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\strip-ansi +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\graceful-fs +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\wrappy +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\minimatch +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\buffer-shims +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\core-util-is +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\isarray +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\process-nextick-args +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\string_decoder +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\util-deprecate +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\code-point-at\node_modules\number-is-nan +7ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\fstream-ignore\node_modules\minimatch\node_modules\brace-expansion\node_modules\balanced-match +2ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\fstream-ignore\node_modules\minimatch\node_modules\brace-expansion\node_modules\concat-map +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\code-point-at +2ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\is-fullwidth-code-point +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\ansi-regex +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\brace-expansion +0ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\number-is-nan +4ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\balanced-match +1ms
  electron-forge:rebuild exploring: c:\eapp\node_modules\sqlite3\node_modules\concat-map +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\@paulcbetts +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\agent-base\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\archiver\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\asar\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\babel-cli\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\bl\node_modules +4ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\camelcase-keys\node_modules +3ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\clean-css\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\compress-commons\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\concat-stream\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\crc32-stream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\dashdash\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\decompress-zip\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\dom-serializer\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\electron-download\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\electron-installer-dmg\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\electron-osx-sign\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\electron-packager\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\electron-prebuilt-compile\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\electron-rebuild\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\electron-winstaller\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\end-of-stream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\escodegen\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\external-editor\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\extract-zip\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\get-package-info\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\getpass\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\htmlparser2\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\inquirer\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\jade\node_modules +3ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\lazystream\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\less\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\locate-path\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\meow\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\mksnapshot\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules +26s
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\columnify\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\columnify\node_modules\wcwidth\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\columnify\node_modules\wcwidth\node_modules\defaults\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\config-chain\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\fstream-npm\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\fstream-npm\node_modules\fstream-ignore\node_modules +3ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\fstream-npm\node_modules\fstream-ignore\node_modules\minimatch\node_modules +3ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\fstream-npm\node_modules\fstream-ignore\node_modules\minimatch\node_modules\brace-expansion\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\glob\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\glob\node_modules\minimatch\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\glob\node_modules\minimatch\node_modules\brace-expansion\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\init-package-json\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\init-package-json\node_modules\glob\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\init-package-json\node_modules\glob\node_modules\minimatch\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\init-package-json\node_modules\glob\node_modules\minimatch\node_modules\brace-expansion\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\lodash._baseuniq\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\mkdirp\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules\minimatch\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules\minimatch\node_modules\brace-expansion\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules\npmlog\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules\npmlog\node_modules\are-we-there-yet\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules\npmlog\node_modules\gauge\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\code-point-at\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\is-fullwidth-code-point\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules\path-array\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules\path-array\node_modules\array-index\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules\path-array\node_modules\array-index\node_modules\debug\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules\path-array\node_modules\array-index\node_modules\es6-symbol\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\node-gyp\node_modules\path-array\node_modules\array-index\node_modules\es6-symbol\node_modules\es5-ext\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\normalize-package-data\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\normalize-package-data\node_modules\is-builtin-module\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npm-registry-client\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npm-registry-client\node_modules\concat-stream\node_modules\readable-stream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npm-registry-client\node_modules\npmlog\node_modules +3ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npm-registry-client\node_modules\npmlog\node_modules\are-we-there-yet\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npm-registry-client\node_modules\npmlog\node_modules\gauge\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npm-registry-client\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npm-registry-client\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\code-point-at\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npm-registry-client\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\is-fullwidth-code-point\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npmlog\node_modules +3ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npmlog\node_modules\are-we-there-yet\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npmlog\node_modules\gauge\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\code-point-at\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\is-fullwidth-code-point\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\osenv\node_modules +4ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\read\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\read-installed\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\read-package-json\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\read-package-json\node_modules\glob\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\read-package-json\node_modules\glob\node_modules\minimatch\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\read-package-json\node_modules\glob\node_modules\minimatch\node_modules\brace-expansion\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\read-package-json\node_modules\json-parse-helpfulerror\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\readable-stream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\bl\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\bl\node_modules\readable-stream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\combined-stream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\form-data\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\har-validator\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\har-validator\node_modules\chalk\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\har-validator\node_modules\commander\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\har-validator\node_modules\is-my-json-valid\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\har-validator\node_modules\is-my-json-valid\node_modules\generate-object-property\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\har-validator\node_modules\pinkie-promise\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\hawk\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\http-signature\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\http-signature\node_modules\jsprim\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\http-signature\node_modules\sshpk\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\request\node_modules\mime-types\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\tar\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\unique-filename\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\validate-npm-package-license\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\validate-npm-package-license\node_modules\spdx-correct\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\validate-npm-package-license\node_modules\spdx-expression-parse\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\validate-npm-package-name\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\npm\node_modules\which\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\nugget\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\optimist\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\postcss\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\rc\node_modules +3ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\regjsparser\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules +4ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\acorn-jsx\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\eslint\node_modules +3ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\esrecurse\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\inquirer\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\mocha\node_modules +3ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\mkdirp\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\nopt\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\are-we-there-yet\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\are-we-there-yet\node_modules\readable-stream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\code-point-at\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\is-fullwidth-code-point\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\strip-ansi\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\rc\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\combined-stream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\form-data\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\chalk\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\chalk\node_modules\has-ansi\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\chalk\node_modules\strip-ansi\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\commander\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\is-my-json-valid\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\is-my-json-valid\node_modules\generate-object-property\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\pinkie-promise\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\hawk\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\http-signature\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\http-signature\node_modules\jsprim\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\http-signature\node_modules\sshpk\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\mime-types\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\request\node_modules\tough-cookie\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\rimraf\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\rimraf\node_modules\glob\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\rimraf\node_modules\glob\node_modules\inflight\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\rimraf\node_modules\glob\node_modules\minimatch\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\rimraf\node_modules\glob\node_modules\minimatch\node_modules\brace-expansion\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\rimraf\node_modules\glob\node_modules\once\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar\node_modules\fstream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\debug\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\fstream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\fstream-ignore\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\fstream-ignore\node_modules\minimatch\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\fstream-ignore\node_modules\minimatch\node_modules\brace-expansion\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\once\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\readable-stream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3\node_modules\table\node_modules +4ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules +3ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\acorn-jsx\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\eslint\node_modules +4ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\esrecurse\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\inquirer\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\mocha\node_modules +4ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\mkdirp\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\nopt\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\npmlog\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\are-we-there-yet\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\are-we-there-yet\node_modules\readable-stream\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\code-point-at\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\string-width\node_modules\is-fullwidth-code-point\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\npmlog\node_modules\gauge\node_modules\strip-ansi\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\rc\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\combined-stream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\form-data\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\chalk\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\chalk\node_modules\has-ansi\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\chalk\node_modules\strip-ansi\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\commander\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\is-my-json-valid\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\is-my-json-valid\node_modules\generate-object-property\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\har-validator\node_modules\pinkie-promise\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\hawk\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\http-signature\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\http-signature\node_modules\jsprim\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\http-signature\node_modules\sshpk\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\mime-types\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\request\node_modules\tough-cookie\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\rimraf\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\rimraf\node_modules\glob\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\rimraf\node_modules\glob\node_modules\inflight\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\rimraf\node_modules\glob\node_modules\minimatch\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\rimraf\node_modules\glob\node_modules\minimatch\node_modules\brace-expansion\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\rimraf\node_modules\glob\node_modules\once\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\tar\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\tar\node_modules\fstream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\debug\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\fstream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\fstream-ignore\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\fstream-ignore\node_modules\minimatch\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\fstream-ignore\node_modules\minimatch\node_modules\brace-expansion\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\once\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\readable-stream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sqlite3 - Copy\node_modules\table\node_modules +4ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\sshpk\node_modules +2ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\stylus\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\tar-stream\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\temp\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\tempfile\node_modules +0ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\through2\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\touch\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\transformers\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\uglify-js\node_modules +1ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\with\node_modules +3ms
  electron-forge:rebuild scanning: c:\eapp\node_modules\zip-stream\node_modules +3ms
  electron-forge:rebuild skipping: sqlite3 as it is already built +18ms
  electron-forge:lifecycle Process Succeeded: Preparing native dependencies 0/0 +1ms
  electron-forge:lifecycle Process Started: Launching Application +1ms
  electron-forge:lifecycle Process Succeeded: Launching Application +7ms
←[?25l←[?25h

@MarshallOfSound
Copy link
Member

MarshallOfSound commented Dec 30, 2016

This is not an issue with electron-forge rather a usage question about Electron itself.

remote.require will require the module in the context of the main process. Therefore a relative path almost certainly won't be executed in the expected way. You can try remote requiring an absolute path.

If you have further questions about Electron itself please feel free to ask in the community or the Slack Channel.

@manikantag
Copy link
Author

@MarshallOfSound Hmmm... you are correct.

Till now I've used https://github.com/BZCoding/SkelEktron based app (which uses electron-builder, and it doesn't have electron-compile support). As recommended by you, now I m trying electron-forge electron-userland/electron-compile#61 (comment)

The same which used to work earlier (with REMOTE.require(...)) is now not working with *electron-forge init app. Now I m using absolute paths for all require and is working fine.

@jdu
Copy link

jdu commented Oct 13, 2017

When using electron-forge from node_modules within a project remote.require() seems to be relative to the .bin folder under ./node_modules instead of the entry point of the application.

Using remote require like this exposes that the main process entry-point isn't being passed to electron from electron-forge correctly:

remote.require('../../../.bin/../src/core/some_lib')

If electron-forge should be as transparent as possible on top of electron, then it shouldn't directly or indirectly alter the intended functionality of a method described in electrons API docs.

https://electron.atom.io/docs/api/remote/#methods

Returns any - The object returned by require(module) in the main process. Modules specified by their relative path will resolve relative to the entrypoint of the main process.

in electron-forges case, the entrypoint is now node_modules/.bin/electron-forge

If a user writes

./node_modules/.bin/electron-forge src/index.js

The expected behaviour is that src/index.js should be the entry point of the application and not ./node_module/.bin/electron-forge

dsanders11 pushed a commit that referenced this issue Jan 14, 2023
feat: Support being offline better
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants