calxibe / StorjMonitor

Node.js script for publishing data from local Storj nodes to Storjstat.com
15 stars 14 forks source link

Support for MacOS #18

Closed user0610 closed 6 years ago

user0610 commented 6 years ago

I tried following the Linux instructions on my mac, but it won't install. Is it supported on MacOS? Any different steps?

user0610 commented 6 years ago

I was getting this error:

/path/to/StorjMonitor/storjMonitor.js:6
const dnode = require('dnode');
^^^^^
SyntaxError: Use of const in strict mode.
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3

And was able to resolve it by running on the terminal: