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:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top 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 >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
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
Problem persists. @tensorflow/tfjs-node@1.7.4, node@14.5.0, OS: Windows 10 64bit.
The file exists barring prefix
\\?
.