-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows x64: Error Arguments to path.join must be strings #5
Comments
What's in "app.js" |
Als (because of this line) what's in process.env['HOME']? |
the other two directory detections in there seems to work just fine. can you do another check to skip if it is undefined, because it looks like it will eventually find a good directory folder soon afterwards...
process.envHOME: undefined exports.cfg_envd = function (envd) {
|
It won't try to define IOTDB_CFG if there's no HOME. Try it now. |
you have to commit the change before I can see it. |
now it has this message... {"name":"iotdb-homestar","module":"app/recipe","hostname":"MYHOMEPC","pid":24616,"level":30,"method":"_load_recipes","cookbooks_path":"cookbooks","msg":"loading recipes","time":"2015-09-09T11:48:47.144Z","v":0} |
Have you done "homestar setup"? If you have, this may be a cascade error On Wed, Sep 9, 2015 at 7:50 AM, nzhome notifications@github.com wrote:
|
yep. .. hey dpjanes did you write all this software on your own? Have you had a look at the very active nodejs homebridge project that brought me to your one? |
I have an idea, I will try envd.IOTDB_CFG = node_path.join(__dirname, ".iotdb"); |
nope that didn't work. I thought /homestar/runner was optional. i don't have any secret keys. why is it forcing me to have runner secret keys? |
I wasn't familiar with homebridge. Thanks for pointing this out - I'll have There is nothing forcing you to have secret keys, so whatever error you are You still have to do "homestar setup" no matter what. This is a {"name":"iotdb-homestar","module":"app/settings"," D. On Mon, Sep 14, 2015 at 3:31 AM, nzhome notifications@github.com wrote:
|
Or to reiterate
|
I will keep trying. |
Sorry, specifically what is the error? D. On Monday, September 14, 2015, nzhome notifications@github.com wrote:
|
there is no error when running homestar setup, it just returns to the console without writting anything to the screen. and running homestar normally gives |
Hmmm. OK, I'm going to boot up a Windows machine tomorrow and try to D On Mon, Sep 14, 2015 at 4:04 PM, nzhome notifications@github.com wrote:
|
I'm betting that you got a whole bunch of errors when you ran "homestar setup". I think I've found all the "unix-isms" and got it working on Windows - it's working on mine now. npm uninstall -g homestar homestar help Let me know! |
odd thing is that homestar help homestar setup does nothing, it can't even find "homestar" and typing cd homestar/app typing node app.js setup how can I make my windows execute homestar like you do? |
Do you mean it does nothing, or it reports an error Did you start with "npm install -g homestar"? If you didn't that's the problem. D. On Tue, Sep 15, 2015 at 8:54 PM, nzhome notifications@github.com wrote:
|
C:\Program Files\nodejs\node_modules>npm install -g homestar
C:\Program Files\nodejs\node_modules>homestar setup C:\Program Files\nodejs\node_modules>cd .. C:\Program Files\nodejs>homestar setup C:\Program Files\nodejs>cd node_modules C:\Program Files\nodejs\node_modules>cd homestar C:\Program Files\nodejs\node_modules\homestar>homestar setup C:\Program Files\nodejs\node_modules\homestar>cd app C:\Program Files\nodejs\node_modules\homestar\app>homestar setup C:\Program Files\nodejs\node_modules\homestar\app>cd .. C:\Program Files\nodejs\node_modules\homestar>cd .. C:\Program Files\nodejs\node_modules>cd .. |
ALSO: I just don't run DOS, I ran the "Node Shell" or something like that, On Wed, Sep 16, 2015 at 3:48 PM, nzhome notifications@github.com wrote:
|
I finally figured it out.. I had to open a cmd window copy homestar to this folder probably has something to do with the -g command line and the homestar.cmd file it creates in that folder. npm install -g homestar or something like that, now I get correctly C:\Users\username\AppData\Roaming\npm>homestar setup |
If this is good, can you close please! |
nope, it still does not work. seems there is issues with homestar. all my other npm nodejs work fine on my PC and RaspberryPI2, its just homestar. |
C:\Program Files\nodejs\node_modules\homestar\app>node homestar setup
C:\Program Files\nodejs\node_modules\homestar\app>node app.js
{"name":"iotdb-homestar","module":"app/recipe","hostname":"MYHOMEPC","pid":15040,"level":30,"method":"_load_recipes","cookbooks_path":"cookbooks","msg":"loading recipes","time":"2015-09-07T08:16:26.761Z","v":0}
{"name":"iotdb","module":"IOT","hostname":"MYHOMEPC","pid":15040,"level":30,"method":"_exit_cleanup","paramd":{"from":"exit"},"err":1,"msg":"start","time":"2015-09-07T08:16:26.765Z","v":0}
path.js:233
throw new TypeError('Arguments to path.join must be strings');
^
TypeError: Arguments to path.join must be strings
at Object.win32.join (path.js:233:13)
at Object.exports.cfg_envd (C:\Program Files\nodejs\node_modules\homestar\node_modules\iotdb\cfg.js:387:36)
at Keystore._load (C:\Program Files\nodejs\node_modules\homestar\node_modules\iotdb\keystore.js:76:38)
at new Keystore (C:\Program Files\nodejs\node_modules\homestar\node_modules\iotdb\keystore.js:57:10)
at Object.keystore (C:\Program Files\nodejs\node_modules\homestar\node_modules\iotdb\keystore.js:191:21)
at Object.setup (C:\Program Files\nodejs\node_modules\homestar\app\settings.js:169:19)
at Object. (C:\Program Files\nodejs\node_modules\homestar\app\app.js:758:10)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
C:\Program Files\nodejs\node_modules\homestar\app>
The text was updated successfully, but these errors were encountered: