tfjs-node installation/setup

44 views
Skip to first unread message

sunil krishnan

unread,
Jun 5, 2020, 6:11:36 PM6/5/20
to TensorFlow.js Discussion
has anyone installed tfjs-node v2.2.0 sucessfuly on windows 8.1 64 bit.
Are there any detailed instructions on this/prerequosites ??


I just havent been able to install this..npm install doesnt create nodejs binding fies. I get all sorts of npde-gyph errors...

I run command shell as administrator to do all the npm stuff..

please help.

Ping Yu

unread,
Jun 8, 2020, 11:22:57 AM6/8/20
to sunil krishnan, TensorFlow.js Discussion
Hi Sunil

Can you follow the windows troubleshooting doc, see if that resolves the issue. thanks

Ping

--
You received this message because you are subscribed to the Google Groups "TensorFlow.js Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tfjs+uns...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tfjs/785e20a7-6c90-4aaf-b6c4-7076a4929194o%40tensorflow.org.

Erik Trom

unread,
Jun 8, 2020, 3:26:46 PM6/8/20
to TensorFlow.js Discussion
node-gyp requires your system to be setup correctly, a few things can go wrong. Make sure compiling a simple hello world c++ executable via gcc or clang works. I had an issue a bit back where conda was inserting itself in my $PATH with its own version of clang-4.0(IIRC) messing everything up.

That may help. echo your $PATH (however you do that in windows) and then make sure that cmake is using the correct toolkit to compile the underlying N-API c++ extensions that are required to to build the module (assuming there is no pre-built binary for ur os).

You can also switch to a previous version of node, which often will have such a binary available saving time.

Or you could use docker so that it builds in a cleanroom.

Good luck.

Erik Trom

unread,
Jun 8, 2020, 3:48:48 PM6/8/20
to TensorFlow.js Discussion
more info available at node-gyp repo itself, fyi https://github.com/nodejs/node-gyp#on-windows
Reply all
Reply to author
Forward
0 new messages