2

I'm following a ML tutorial on Youtube (https://www.youtube.com/watch?v=XdErOpUzupY&index=5&list=PLoYCgNOIyGABWLy_XoLSxTVRe2bltV8GM) and I'm suppose to install @tensorflow/tfjs-node. However when I run

npm install @tensorflow/tfjs-node

I get the following error (see screencap).

I've watched the relevant files be placed into node_modules but then they immediately get uninstalled. I'm not sure where to go from here, but let me know if you need anymore info.

Cheers

Package.json

{
  "name": "tfjs",
  "version": "1.0.0",
  "description": "",
  "main": "iris.js",
  "scripts": {
    "start": "parcel --target=node iris.js & nodemon dist/iris.js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@tensorflow/tfjs": "^0.11.7",
    "@tensorflow/tfjs-node": "^0.1.7",
    "nodemon": "^1.17.5",
    "parcel": "^1.9.0"
  }
}
desertnaut
  • 57,590
  • 26
  • 140
  • 166
adr5240
  • 354
  • 1
  • 2
  • 14

1 Answers1

2

Given the error screenshot of your errors, you're using node version 6 whereas tensorflowjs requires node v8.9+. Consider upgrading the version of your server node using the official website here. When you're done check the version with node -v to make sure that your version of node meets the requirements of tensorflowjs modules.

edkeveked
  • 17,989
  • 10
  • 55
  • 93