mljs / ml

Machine learning tools in JavaScript
MIT License
2.63k stars 210 forks source link

Crash starting script working with NodeJS #171

Closed cvelasco88 closed 3 years ago

cvelasco88 commented 3 years ago

Hi, I am trying to make a simple app with NodeJs and I'm having some troubles because the imports. You guys that are more updated than me in this topic,

My app.js looks like this: const http = require('http'); const fs = require('fs'); const ML = require('ml');

Screenshot of my error: Captura de pantalla de 2021-06-15 22-30-57

UPDATED: Trying the extension app.mjs Captura de pantalla de 2021-06-15 23-07-52

targos commented 3 years ago

Hello, this module is made and built for simple use in the browser (https://github.com/mljs/ml#introduction). If you are using Node.js, we recommend to directly install the specific modules that you need. There are links to all of them in the readme.