Error: when installing @tensorflow/tfjs-node version 4.20

node version: 16.5.0
npm version: 8.55
python version: 3.1.1
visual studio IDE version: 2022
windows: x-64

I have checked Github, and StackOverflow for possible solutions but none of the approaches stated there solves the issue. Despite downgrading to a lower Node version, I still couldn’t install the package (@tensorflow/tfjs-node).

Can someone please guide me through the installation process? I just picked up tensorflow.js as a machine-learning tool



if you already had a node_modules and a package.json I’d try the steps:

  1. removing the node_modules folder
  2. and doing npm i to reinstall everything.