11
Windows固有の通知を使用する単純なElectronアプリを作成しようとしています。この使用のために私はelectron-windows-interactive-notificationsに依存しています。NodeJSでネイティブWindowsライブラリを使用できません
私は私のプロジェクトにnpm install
とその後electron-rebuild
を実行すると、私が手:
App threw an error during load
Error: The specified module could not be found.
\\?\C:\Users\moro\projects\tw-en-ty\node_modules\electron-windows-interactive-notifications\build\Release\notifications_bindings.node
at Error (native)
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
at Object.Module._extensions..node (module.js:583:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at bindings (C:\Users\moro\projects\tw-en-ty\node_modules\bindings\bindings.js:76:44)
それはネイティブの依存関係の問題になる可能性がNodeJS issueによります。私はdependencywalkerでnotifications_bindings.node
を調べるとき、私は(多くの行方不明の入れ子の中で)不足している直接のDLLを以下を参照してください。
- Electronの誤った使用方法:
率直に言って、私は問題が何であるか見当がつかない?
- electron-windows-interactive-notificationsの使用方法が間違っていますか?
- NodeRTに問題がありますか?
- node-gypに問題がありますか?
- 私の環境で問題がありますか?
問題の解決に近づける手助けができますか?
ありがとうございました!
Question was also asked here
を再構築します。彼らはあなたのメインの.exeファイル(electron.exeまたは他のもの)を脇に置いていますか? –
@SimonMourierは応答に感謝します。さて、見つからない.dllを検索すると、次の場所にそれらが表示されます。 ** node.dll ** - 'node_modules \ electron \ dist \'; ** interactivenotifications.dll ** - 'node_modules \ electron-windows-interactive-notifications \ Release \'; ** api -...- .dll ** - 'c:¥Program Files(x86)¥Windowsのキット¥10¥Redist¥ucrt¥DLLs¥x64¥api-ms-win-crt-runtime-l1-1 -0.dll '; 私は、彼らが正しいkernel32.dllまたはole32.dllと同じ方法で参照される必要があると言います。 –
あなたは、それらをmain exeと同じディレクトリにコピーする必要があります。 )。あなたは\ windows \ system32に置く必要はありません –