I have installed npm , node and mango but i am keep getting this error :
MacBook-Air:myBotName exepaul$ npm run start-telnet
> myBotName@0.0.0 start-telnet /Users/exepaul/myBotName
> npm run build && node lib/server-telnet.js
> myBotName@0.0.0 build /Users/exepaul/myBotName
> babel src --presets babel-preset-es2015 --out-dir lib
src/server-slack.js -> lib/server-slack.js
src/server-telnet.js -> lib/server-telnet.js
{ Error: ENOENT: no such file or directory, open './data.json'
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: './data.json' }
undefined:1
undefined
^
SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse (<anonymous>)
at ReadFileContext._fs2.default.readFile [as callback] (/Users/exepaul/myBotName/node_modules/superscript/lib/bot/db/import.js:233:40)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! myBotName@0.0.0 start-telnet: `npm run build && node lib/server-telnet.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the myBotName@0.0.0 start-telnet script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/exepaul/.npm/_logs/2017-12-30T07_57_09_553Z-debug.log
I am trying to run the project ,
I have installed npm , node and mango but i am keep getting this error :
2017-12-30T07_57_09_553Z-debug.log log file says :