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.

[Windows] Error: The specified module could not be found. node_modules\@tensorflow\tfjs-node\lib\napi-v6\tfjs_binding.node

See original GitHub issue

OS: Windows 10 Profecttional Node: v12.19.0 Tensorflow:

"@tensorflow/tfjs": "^2.6.0",
"@tensorflow/tfjs-node": "^2.6.0",

Script

const tf = require('@tensorflow/tfjs');
require('@tensorflow/tfjs-node');

run

$ node index.js

internal/modules/cjs/loader.js:1065
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: The specified module could not be found.
\\?\C:\ProjectPath\node_modules\@tensorflow\tfjs-node\lib\napi-v6\tfjs_binding.node
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1065:18)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:903:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (C:\ProjectPath\node_modules\@tensorflow\tfjs-node\dist\index.js:58:16)
    at Module._compile (internal/modules/cjs/loader.js:1015:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)

What kind of error is this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

13reactions
rahbaricommented, Oct 31, 2020

TFJS-Node-CPU: 2.7 OS: Win 10 Node: 14.15

Error: The specified module could not be found.
\\?\D:\TFJS\node_modules\@tensorflow\tfjs-node\lib\napi-v6\tfjs_binding.node

Solution: move D:\TFJS\node_modules\@tensorflow\tfjs-node\deps\lib\tensorflow.dll to D:\TFJS\node_modules\@tensorflow\tfjs-node\lib\napi-v6\

1reaction
soypaduanocommented, Mar 14, 2021

This worked for me:

Solution: move D:\TFJS\node_modules\@tensorflow\tfjs-node\deps\lib\tensorflow.dll to D:\TFJS\node_modules\@tensorflow\tfjs-node\lib\napi-v6\

Read more comments on GitHub >

github_iconTop Results From Across the Web

The error “The specified module could not be found”
Hold down Windows + I key to open Settings > Select Update & Security > In the pop-up window, select Windows Defender in...
Read more >
Error: The specified module could not be found. [Windows 10 ...
I installed opencv4nodejs last night and it was working just fine but when I opened my laptop this morning and tried to ...
Read more >
The specified module could not be found | 3 Ways to Fix It
"The specified module could not be found" is a RunDLL error. It is related to DLL (.dll) files linked to Windows Registry and...
Read more >
Error: The specified module could not be found - Stack Overflow
I loaded edge_nativeclr.node in Dependency Walker and noticed that VCRUNTIME140.DLL , the Visual Studio 2015 C runtime, was missing.
Read more >
node-windows - npm
Kill Task: A method to kill a specific windows service/task (by PID). ... node-windows does not use native modules.
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