lukehaas / RunJS

RunJS is a JavaScript playground for macOS, Windows and Linux. Write code with instant feedback and access to Node.js and browser APIs.
https://runjs.app
2k stars 43 forks source link

node and tensorFlow error #595

Closed Gravitad closed 7 months ago

Gravitad commented 7 months ago

I have a problem installing the @tensorflow/tfjs-node libraries

mistake:

Error: The Node.js native addon module (tfjs_binding.node) can not be found at path: C:Usersdavid zuccariniAppDataRoaming
unjs
ode_modules@tensorflow fjs-nodelib
api-v8 fjs_binding.node.

I also have a problem when trying to import any file. It doesn't recognize my route. and if I set the working directory, it doesn't take the directory either.

lukehaas commented 7 months ago

@Gravitad RunJS is not able to build native dependencies. You could try building manually by following the instructions here: https://www.npmjs.com/package/@tensorflow/tfjs-node

Or you could use the non-native version of TensorFlow instead: @tensorflow/tfjs https://www.npmjs.com/package/@tensorflow/tfjs