You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

A JavaScript library for training and deploying ML models in the browser and on Node.js.


In order to run tensorflow.js in node.js on Mac, you should install tensorflow.js as following:

$ npm install @tensorflow/tfjs-node

> @tensorflow/tfjs-node@0.1.20 install /Users/kurapa/node_modules/@tensorflow/tfjs-node
> node scripts/install.js

* Downloading libtensorflow
[==============================] 5852094/bps 100% 0.0s
* Building TensorFlow Node.js bindings

> protobufjs@6.8.8 postinstall /Users/kurapa/node_modules/protobufjs
> node scripts/postinstall

npm WARN saveError ENOENT: no such file or directory, open '/Users/kurapa/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/Users/kurapa/package.json'
npm WARN kurapa No description
npm WARN kurapa No repository field.
npm WARN kurapa No README data
npm WARN kurapa No license field.

+ @tensorflow/tfjs-node@0.1.20
added 48 packages from 52 contributors and audited 61 packages in 20.808s
found 0 vulnerabilities



Reference URL: https://js.tensorflow.org/

  • No labels