question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"The specified module could not be found"

See original GitHub issue

Windows 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
mscdexcommented, Jul 30, 2019

That looks fine. Did you also make sure to check the ‘winpcap compatibility’ option when you installed npcap?

3reactions
vincenthawkecommented, Jul 30, 2019

Works now:) Winpcap compatibility checkbox fixed it: http://prntscr.com/om78fg Thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found