Reputation: 3613
I'm receiving this error when trying to use tensorflow on an ubuntu box. It's a fresh npm install in a new folder. I've tried the suggestions from other posts but still can't get it. Is there something I'm missing?
Initialization of backend tensorflow failed Error: Could not locate the bindings file. Tried: → /var/nodejs/tensor/node_modules/@tensorflow/tfjs-node/build/tfjs_binding.node, ... etc
node: v10.12.0
npm: 6.7.0
{
"name": "tensor",
"scripts": {
"start": "node algo.js"
},
"dependencies": {
"@tensorflow/tfjs-node": "*"
}
}
const tf = require('@tensorflow/tfjs-node');
Upvotes: 2
Views: 1712
Reputation: 25230
One of the following steps might help to fix your problem:
node_modules
foldernpm install
sudo npm install -g node-gyp
sudo
sudo npm install
Upvotes: 2