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. tfjs_binding.node

See original GitHub issue

@tensorflow/tfjs-node”: “^1.3.1” Python 2.7.17 OS: Windows 10 64bit Browser: Google Chrome version 78.0.3904.70 (64-bit)

I tried version @tensorflow/tfjs-node@1.2.3 (answer from stackoverflow) , which doesn’t have the problem, but it had other issues.

The error is procuced by a single: require('@tensorflow/tfjs-node')

Been trying to figure out this error for a while now, i’ve tried:

  • npm install -g -production windows-build-tools
  • made sure my path doesn’t have whitespace
  • made sure that tfjs_binding.node actually is in my node_modules
  • replaced the bindingPath variable with the exact path to tfjs_binding.node
C:\Users\kim_1\Desktop\league_stats\src\ml\logistic-regression>node index.js
internal/modules/cjs/loader.js:1003
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: The specified module could not be found.
\\?\C:\Users\kim_1\Desktop\league_stats\node_modules\@tensorflow\tfjs-node\lib\napi-v4\tfjs_binding.node
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1003:18)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (C:\Users\kim_1\Desktop\league_stats\node_modules\@tensorflow\tfjs-node\dist\index.js:44:16)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kimvucommented, Nov 11, 2019

I changed my nodeversion to 10.16.3, and stil get the same error. @kangyizhang

Update: had to change @tensorflow/tfjs-node version to 1.2.11. Works now

1reaction
f-wcommented, Apr 5, 2021

Problem persists. @tensorflow/tfjs-node@1.7.4, node@14.5.0, OS: Windows 10 64bit.

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

The file exists barring prefix \\?.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Windows] Error: The specified module could not be found ...
[Windows] Error: The specified module could not be found. node_modules\@tensorflow\tfjs-node\lib\napi-v6\tfjs_binding.node #4116.
Read more >
node.js - Error: The specified module could not be found. \\?\C ...
I am getting an error when importing '@tensorflow/tfjs-node' module. My problem is similar to that mentioned in Cannot import ...
Read more >
NodeJs: Getting "Error: The specified module could not be ...
Need some help in importing the node binding in NodeJs. I am getting the "Error: The specified module could not be found\\?\C:\Program Files\nodejs\tf\ ......
Read more >
tfjs_binding.node" not found in @tensorflow installed folder
Coding example for the question "tfjs_binding.node" not found in @tensorflow installed folder. ... Error: The specified module could not be found. \\?
Read more >
Error: The Specified Module Could Not Be Found ... - ADocLib
Impact: The ttCompact builtin procedure did not finish executing. The transaction log may be missing log records related to the specified checkpoint file....
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