Hi, I am using tensorflow in my Node.js rest API but it seems to give above notification . Idk if solving it will improve my time consumed on 1 request but it would be a great help if it does.
"tslib": "^1.10.0"
hi @Umar24129 what is your node version?
my node version is v10.15.0
sorry for late reply . didn't expected fast response.
Thanks for the info.
The library definitely build on N-API 4. Currently there is a known issue of installing tfjs-node on windows with certain version of node (https://github.com/tensorflow/tfjs/issues/2003). Node version 10.16.3 should work (https://nodejs.org/download/release/v10.16.3/).
Another command you can try is npm rebuild @tensorflow/tfjs-node --build-from-source in your repo.
BTW what is your operating system?
Windows 10 Operating System version 1809
yes it worked perfectly. I upgraded Node version to 10.16.3 and then used the command as per your guidance and it worked, Thanks allot as always I seriously am great full of people like you for giving a big helping hand.
Hi @kangyizhang,
I'm using node: v10.15.3
but I have the same problem.
Overriding the gradient for 'Max'
Overriding the gradient for 'OneHot'
Overriding the gradient for 'PadV2'
Overriding the gradient for 'SpaceToBatchND'
Overriding the gradient for 'SplitV'
node-pre-gyp info This Node instance does not support builds for N-API version 4
node-pre-gyp info This Node instance does not support builds for N-API version 5
node-pre-gyp info This Node instance does not support builds for N-API version 6
node-pre-gyp info This Node instance does not support builds for N-API version 4
node-pre-gyp info This Node instance does not support builds for N-API version 5
node-pre-gyp info This Node instance does not support builds for N-API version 6
/Volumes/gCamouInc/Dev/Projects/TensorFlow/Samples/Exercise-002/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: /Volumes/gCamouInc/Dev/Projects/TensorFlow/Samples/Exercise-002/node_modules/@tensorflow/tfjs-node/lib/napi-v3/tfjs_binding.node.
Please run command 'npm rebuild @tensorflow/tfjs-node build-addon-from-source' to rebuild the native addon module.
When I type the next command npm rebuild @tensorflow/tfjs-node --build-from-source
I get the next error
CPU-darwin-2.0.1.tar.gz
* Building TensorFlow Node.js bindings
node-pre-gyp install failed with error: Error: Command failed: node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https download
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
so i ran with node 10 , but still have this error, I don't think it's using the GPU ?
2020-08-05 19:36:38.518811: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1618] Found device 0 with properties:
name: TITAN RTX major: 7 minor: 5 memoryClockRate(GHz): 1.77
pciBusID: 0000:42:00.0
2020-08-05 19:36:38.518882: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcudart.so.10.0'; dlerror: libcudart.so.10.0: cannot open shared object file: No such file or directory
2020-08-05 19:36:38.518916: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcublas.so.10.0'; dlerror: libcublas.so.10.0: cannot open shared object file: No such file or directory
2020-08-05 19:36:38.518944: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcufft.so.10.0'; dlerror: libcufft.so.10.0: cannot open shared object file: No such file or directory
2020-08-05 19:36:38.518973: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcurand.so.10.0'; dlerror: libcurand.so.10.0: cannot open shared object file: No such file or directory
2020-08-05 19:36:38.519002: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcusolver.so.10.0'; dlerror: libcusolver.so.10.0: cannot open shared object file: No such file or directory
2020-08-05 19:36:38.519029: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcusparse.so.10.0'; dlerror: libcusparse.so.10.0: cannot open shared object file: No such file or directory
2020-08-05 19:36:38.521598: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
2020-08-05 19:36:38.521617: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1641] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
yes it worked perfectly. I upgraded Node version to 10.16.3 and then used the command as per your guidance and it worked, Thanks allot as always I seriously am great full of people like you for giving a big helping hand.
How did you upgrade the node version
@kangyizhang I'm having the same issue with
node/11.1.0
node/12.13.0
node/12.13.1
慰 node/12.16.1
node-pre-gyp info This Node instance does not support builds for N-API version 6
node-pre-gyp info This Node instance does not support builds for N-API version 6
with
```
Last login: Mon Oct 5 14:52:13 on ttys005
ip-192-168-1-52:webservice loretoparisi$ npm --version
6.14.8
ip-192-168-1-52:webservice loretoparisi$ node --version
v12.16.1
ip-192-168-1-52:webservice loretoparisi$ node-gyp --version
v6.0.1
ip-192-168-1-52:webservice loretoparisi$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.14.5
BuildVersion: 18F132
Most helpful comment
yes it worked perfectly. I upgraded Node version to 10.16.3 and then used the command as per your guidance and it worked, Thanks allot as always I seriously am great full of people like you for giving a big helping hand.