maboiteaspam / cozy-dashboard

0 stars 0 forks source link

Cozy Dashboard doesn't start properly #1

Open frankrousseau opened 9 years ago

frankrousseau commented 9 years ago

When I start the Cozy Dashboard application it says that it can't find the cozy-light package. Do you have any idea of what is wrong?

maboiteaspam commented 9 years ago

probably because it relies on globals. I ll check that tonight or tomorrow (..).

maboiteaspam commented 9 years ago

nop could not reproduce the warning/error doing the standard install procedure. Need to go further in auto testing to check about this right now.

maboiteaspam commented 9 years ago

hi,

could you send me npm ls -g | grep cozy

? Thanks.

maboiteaspam commented 9 years ago

now, doing,

npm i cozy-labs/cozy-light -g
cozy-light install maboiteaspam/cozy-dashboard
cozy-light add-plugin maboiteaspam/cozy-homepage
cozy-light start

works fine.

bye

frankrousseau commented 9 years ago

I forgot I opened that thread. I will update you when I will work on Cozy Light again (probably on wednesday but maybe tonight).

frankrousseau commented 9 years ago

Here is the error reported when I try to start the Dashboard app:

{ [Error: Cannot find module 'cozy-light'] code: 'MODULE_NOT_FOUND' }
error - Cozy Light | Can't load application cozy-dashboard.
maboiteaspam commented 9 years ago

please send me

npm ls -g | grep cozy

problem is located here https://github.com/maboiteaspam/cozy-dashboard/blob/master/application.js

var cozyLight = require('cozy-light');
maboiteaspam commented 9 years ago

i think i understand now

http://stackoverflow.com/questions/15636367/nodejs-require-a-global-module-package

this means the start / stop handler for app/plugin has to be updated to pass the cozyLight instance. Then needs to re factor this app.