Open benjamincochran opened 9 years ago
Not sure why it's not starting for you. Try this:
1) cd to node_modules/monitor-dashboard
2) run node monitor.js
That's essentially what npm start monitor-dashboard
does. Maybe there'll be better debugging information about what went wrong.
That works. I can even run it from the local directory:
bc-comp:myproject-node benjamincochran$ node node_modules/monitor-dashboard/monitor.js
_________ __________
___________________ /____ _______ ___________________(_)_ /______________
__ __ \ __ \ __ /_ _ \ __ __ `__ \ __ \_ __ \_ /_ __/ __ \_ ___/
_ / / / /_/ / /_/ / / __/ _ / / / / / /_/ / / / / / / /_ / /_/ / /
/_/ /_/\____/\__,_/ \___/ /_/ /_/ /_/\____//_/ /_//_/ \__/ \____//_/
Problem parsing /Users/benjamincochran/myproject-node/node_modules/.DS_Store/package.json
Problem parsing /Users/benjamincochran/node_modules/.DS_Store/package.json
Now showing at http://localhost:4200/
External connections disabled.
See /Users/benjamincochran/myproject-node/config/external.js for more information.
Very strange.
strange. is there an npm error file output in your local directory when you run npm start monitor-dashboard
?
Hi. I have faced with the same problem with launching tool on Windows :
npm start monitor-dashboard
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start',
1 verbose cli 'monitor-dashboard' ]
2 info using npm@2.5.1
3 info using node@v0.12.0
4 verbose node symlink C:\Program Files\nodejs\node.exe
5 verbose stack Error: missing script: start
5 verbose stack at run (C:\Program Files\nodejs\node_modules\npm\lib\run-script.js:138:19)
5 verbose stack at C:\Program Files\nodejs\node_modules\npm\lib\run-script.js:81:5
5 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:51:40
5 verbose stack at final (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:349:17)
5 verbose stack at then (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:126:33)
5 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:316:48
5 verbose stack at evalmachine.
Running from directory ..\node_modules\monitor-dashboard -> successfully
This sounds like a difference in npm start behavior, either a windows difference or an npm version difference. It seems to say it's missing the start script, but if you examine the package.json it should be there.
I've added monitor to my app file:
... and that seems to be working correctly, in that I can connect from the REPL:
I've also installed monitor-dashboard, which seems to have worked, but with warnings:
... but when I try to actually start it up, I get nuthin', zilch, nada:
What have I done wrong? I'm on OSX, 10.9.2.