Reputation: 321
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
Then I change it to npm install brain
So the errors are fixed.
Now I'm using visual studio and I tryed to run this first line but :
const brain = require('brain.js');
I got
Uncaught ReferenceError ReferenceError: brain is not defined
Upvotes: 2
Views: 339
Reputation: 128
Try the same command without the dot:
npm install brainjs
as described in Strange npm error when running npm install brain.js
Upvotes: 2