首页 > 解决方案 > not able to find tfjs-node bindings

问题描述

I am trying tfjs-node in my machine for one of my projects and i keep getting the below issue.

Error: The Node.js native addon module (tfjs_binding.node) can not be found at path: /Users/pavanmantha/Pavans/ML-Practice/nodejs+tfjs/nodejs_tfjs/node_modules/@tensorflow/tfjs-node/lib/napi-v6/tfjs_binding.node. 

My environment is as below:
OS: MAC OSX Catalina 10.15.6
Node: 14.5.0
Python: 3.8.3

Please suggest me some way, as i tried reinstalling all dependencies and changed my node versions. nothing helped.

Thanks.

标签: pythonnode.jstensorflowtfjs-nodetensorflow.js

解决方案


From this issue
Try running this command

npm rebuild @tensorflow/tfjs-node --build-from-source

Does this solve your problem?


推荐阅读