Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on execution #13

Open
xXJoJoDioXx opened this issue Sep 19, 2021 · 0 comments
Open

Error on execution #13

xXJoJoDioXx opened this issue Sep 19, 2021 · 0 comments

Comments

@xXJoJoDioXx
Copy link

xXJoJoDioXx commented Sep 19, 2021

After installing the library, any reference to the library causes the following output and error:

Platform node has already been set. Overwriting the platform with [object Object].
Platform node has already been set. Overwriting the platform with [object Object].
cpu backend was already registered. Reusing existing backend factory.
Platform node has already been set. Overwriting the platform with [object Object].
C:\Users\JoJo\Desktop\ic\yeet\node_modules\@tensorflow\tfjs-node\dist\index.js:49
    throw new Error("The Node.js native addon module (tfjs_binding.node) can not " +
    ^

Error: The Node.js native addon module (tfjs_binding.node) can not be found at path: C:\Users\JoJo\Desktop\ic\yeet\node_modules\@tensorflow\tfjs-node\lib\napi-v7\tfjs_binding.node.
Please run command 'npm rebuild @tensorflow/tfjs-node build-addon-from-source' to rebuild the native addon module.
If you have problem with building the addon module, please check https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an issue.
    at Object.<anonymous> (C:\Users\JoJo\Desktop\ic\yeet\node_modules\@tensorflow\tfjs-node\dist\index.js:49:11)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at Object.<anonymous> (C:\Users\JoJo\Desktop\ic\yeet\node_modules\image-classifier\lib\ImageClassifier.js:64:23)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

This can be reproduced by just having the following line: const ImageClassifier = require("image-classifier");
Note that I am on a Windows 10 OS and the node/npm version is 16.8.0/7.13.0
Any help would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant