dasher
dasher copied to clipboard
Please help...Error with "sudo npm run start". What should I do to fix?
joey@joey-GM5664:~$ cd /home/joey/dasher joey@joey-GM5664:~/dasher$ sudo npm run start
[email protected] start /home/joey/dasher node app.js
module.js:428 throw err; ^
SyntaxError: /home/joey/dasher/config/config.json: Unexpected token ]
at Object.parse (native)
at Object.Module._extensions..json (module.js:425:27)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "start"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node app.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the dasher package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs dasher
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls dasher
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /home/joey/dasher/npm-debug.log joey@joey-GM5664:~/dasher$
Here is the npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'run', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 silly lifecycle [email protected]~prestart: no script for prestart, continuing
7 info lifecycle [email protected]~start: [email protected]
8 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~start: PATH: /usr/share/npm/bin/node-gyp-bin:/home/joey/dasher/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
10 verbose lifecycle [email protected]~start: CWD: /home/joey/dasher
11 silly lifecycle [email protected]~start: Args: [ '-c', 'node app.js' ]
12 silly lifecycle [email protected]~start: Returned: code: 1 signal: null
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start: node app.js
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.node app.js
22 error Exit status 1
23 error Failed at the [email protected] start script 'node app.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the dasher package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error node app.js
23 error You can get information on how to open an issue for this project with:
23 error npm bugs dasher
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls dasher
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
Did you get this figured out?
The first error appears to be that your config file has an invalid character. The character appears to be a ]
Just happend to me, you may have a comma (",") too much. The one after your last device needs to be removed