"The specified module could not be found"
See original GitHub issueWindows 10, node version v10.15.3, npcap version 0.995.
I was unable to run a simple code example:
const Cap = require('cap').Cap;
console.dir(Cap.deviceList());
It gives an error:
PS C:\Users\Home1\Desktop\nodecap> node index
internal/modules/cjs/loader.js:730
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: The specified module could not be found.
\\?\C:\Users\Home1\Desktop\nodecap\node_modules\cap\build\Release\cap.node
at Object.Module._extensions..node (internal/modules/cjs/loader.js:730:18)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (C:\Users\Home1\Desktop\nodecap\node_modules\cap\lib\Cap.js:3:13)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
PS C:\Users\Home1\Desktop\nodecap>
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How To Fix The specified module could not be found
Fixes for The specified module could not be found · Fix 1: Run the SFC scan · Fix 2: Update your device drivers...
Read more >7 Ways To Fix “The Specified Module Could Not Be Found” Error
“The specified module could not be found” is a common error that usually occurs when your system tries to access missing DLL files....
Read more >4 Ways to Solve the Specified Module Could Not Be Found
The specified module could not be found error is a DLL error. It usually shows on the Windows startup or warming up. This...
Read more >The specified module could not be found | 3 Ways to Fix It
"The specified module could not be found" error often occurs on Windows startup or when launching a particular program.
Read more >How to fix "The specified module could not be found" error on ...
How to fix "The specified module could not be found" error on Windows? · Fix 1. Scan your computer for malware · Fix...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That looks fine. Did you also make sure to check the ‘winpcap compatibility’ option when you installed npcap?
Works now:) Winpcap compatibility checkbox fixed it: http://prntscr.com/om78fg Thank you!