I am trying to create a neural network using javascript. So, I found brain JS, and I'm following this tutorial.
https://github.com/BrainJS/brain.js#brainjs
First of all, the installation : npm install brain.js
But I got warnings
npm WARN deprecated uuid@3.4.0: Please upgrade and errors
npm ERR! path /home/khouloud/node_modules/gl
npm ERR! command failed
npm ERR! command sh -c /tmp/install657645639957.sh
I sow in the internet that these are just warnings and I can skip them
So I use visual studio and I try this code line
const brain = require('brain.js');
I got this Uncaught ReferenceError ReferenceError: brain is not defined
I don't know what is the source of the problem Someone help me !