-
Notifications
You must be signed in to change notification settings - Fork 34
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 Installation Fails #49
Comments
cc @Acconut |
Well, that's a wired issue. Normally this should be prevented by https://github.com/hoodiehq/hoodie-cli/blob/master/lib/hoodie/util/git.js#L9. I assume you have executed |
Yes. |
Have you tried it using the default command line on windows (cmd.exe)? I was unable to reproduce your issue. |
I just tried it now. Same issue. I would like to point out that I've never seen anyone actually use the cmd.exe command line for actual "work" on windows, ever. It's always some alternative command line such as a dresser program, power shell (or whatever it's called), cygwin equivalent, etc. I'll try and diagnose it for you since I have some time. [edit] In my hoodie-cli located at
|
The warn is harmless, but can you try running
|
Ok, the problem is that the version published on npm doesn't include the necessary fix (https://github.com/hoodiehq/hoodie-cli/commit/301958229c911b2cd00216690c50d050995da7e1).Until someone publishes the latest version you need to install it from GitHub: This is why we need hoodiehq/discussion#19 |
The url for the fix is invalid @Acconut |
Fixed, thanks |
Tested and workaround works on my end. That said |
Did you start couchdb yourself? Hoodie doesn't require you to do so since it starts couchdb automatically. Please stop couchdb and try again. |
The default behavior on windows when you install couch is "Install as service" and "Start service automatically." Haven't done anything special other then following the basic install instructions they have. |
Hoodie starts a separate CouchDB instance on a different port than the default installation, so they don't interfere with each other. The hoodie start output tells you the port that CouchDB was started with. There is no need to stop the default installation, but it also won't be used by Hoodie :)
|
Builds have always been smooth on my mac but I'm bumping into the same CouchDB error in
I can continue to play with this on a Mac but was hoping since this appears to build new hoodie apps successfully now to do basic development on windows as well if it's just a simple configuration/port tweak I'm missing (CouchDB is installed and running just fine on the default port 5984). |
I'm not sure if this is still an issue for windows machines, but while digging through the cli code I saw there are manually concatenated paths (e.g. https://github.com/hoodiehq/hoodie-cli/blob/master/lib/hoodie/new.js#L246), maybe using |
@boennemann I think using |
Sure, I'll have a look this evening. |
To be honest I don't think that's the problem since node can handle paths containing both, front- and backslashes. |
Having the same issue here, everything freshly installed (on Win8) According to the error output, we're missing Would the Hoodie Scaffold be bad on Windows? I can confirm this file exist when I scaffold a new app on OSX |
Thanks for all of the quick responses already. I'll have to give these ideas another go when production work cools down next week ;-) I did make some progress that same day by entering the environment path variables per @zipzit 's comment near the bottom of this thread not sure if they will help you @OClement but might be worth a try. |
Thanks for the response @alittle, unfortunately it doesn't seem to help my case Been looking around a bit more and check what is happening here; If I understand correctly, the error we get (non-existing couch.pid) is not the root of the problem, and this file probably is created when the couch server instance gets actually created. I think the problem is at least two-fold: I'm not sure why it feels it needs to kill that process in the fist place; Seems like the stacktrace isn't long enough to lead us there. Unfortunately I have limited experience when it comes to developping Node Apps, hopefully someone with more knowledge will be able to shed some light in here |
Ouch. I wish I could help you guys more. I got busy on other stuff and hood.ie got sent to the back burner. I've not looked at the code in months. Apologies... LB, Las Vegas Nevada USA. From: OClement [email protected] Thanks for the response @alittle |
I tested it on my windows 7 machine and it worked like a charm. These are mine:
I've installed CouchDB to |
I've tried it now on a blank windows 8 machine and ran into the same issue. I assume it's a problem with multicouch not finding the binary. I'll investigate. |
I've found the issue: https://github.com/hoodiehq/node-multicouch/blob/master/lib/multicouch.js#L17
Tell me whether it helps. I'll make a pull request soon. |
So is there a definite resolution to this? I have a x64 Windows 7 installation currently, but installed CouchDB as x86 so the erl.exe lives in this path I've also tried to install hoodie-cli via When I try running the Of course I tried cleaning my NPM & hoodie cache with no luck :( Also I've had both NPM and Git installed and both have been working great for over a year. |
@Jamez14 The issue you're having is different from the one discussed here. You seem to have a problem with hoodie-cli but I'll have a look. Do you use a proxy? Please try running |
@Jamez14 Did it work now? |
@Acconut unfortunately not completely. Here's what it looks like on my end... |
@Jamez14 I'm not sure what produces this error but in the meantime you can create a hoodie app by yourself using these commands: https://gist.github.com/Acconut/8f5853b62d9929de87db#file-new-bat |
@Acconut awesome, thanks for that! |
Windows Installation After installing all the modules, head to the root of the website, Edit line 17 and set this to wherever you have installed couchDB |
It is indeed a prerequisite of Hoodie to expect CouchDB to be installed in the default location. We should make that clear in the docs. I filed hoodiehq-archive/node-multicouch#26 to help solve this in the underlying component. If anyone could help figure this out, we can support any install location. Any help would be very appreciated! <3 |
Hello! does this has a solution? getting the same error on my win10 x64 laptop |
@websus this repository is outdated. Can you please try |
I have a pretty good idea looking at the
C:\Program
what the error is. But I'm sure you know where it is and how to fix it. For reference, windows 7 x64, git bash:The text was updated successfully, but these errors were encountered: