donpark / html2jade

Converts HTML to Jade template. Not perfect but useful enough for non-daily conversions.
MIT License
1.18k stars 156 forks source link

Support windows #25

Closed wuhaixing closed 10 years ago

wuhaixing commented 12 years ago

cann't figure out how to run it on windows

donpark commented 12 years ago

Sorry, Windows command-line support is not there. Frankly, it's not clear to me how NPM is suppose to work on Windows either.

wuhaixing commented 12 years ago

Thanks,I just found this and will give it a try Install Node.js and NPM on Windows http://www.hacksparrow.com/install-node-js-and-npm-on-windows.html

donpark commented 12 years ago

With node >= 0.6.3 containing bundled npm and html2jade >= 0.1.1, html2jade appears to be working on Windows.

However, fix in 0.1.1 is temporary workaround, forcing require("html2jade") to fail so secondary require("../lib/html2jade") can kick in.

It would be good to figure out why html2jade using default module path fails on Windows.

analogt commented 12 years ago

I think the real issue as to why people are having issues with this package on windows resides in the dependency on jsdom. jsdom contains compiled binaries not compatible with windows. if you can satisfy the jsdom dependency then you should be ready to rock.

donpark commented 12 years ago

It's the Contextify package used by jsdom that uses native code. Hope that changes soon.

donpark commented 12 years ago

Good news: node 0.7 will include contextify-like feature. Bad news: 0.7 is months away.

enzy commented 10 years ago

Months have passed...

donpark commented 10 years ago

@enzy have you tried installing after making sure Windows-specific requirements listed at https://github.com/tmpvar/jsdom#Windows are met?

donpark commented 10 years ago

BTW, jsdom will finally get rid of contextify when Node.js 0.12 gets released.

https://github.com/tmpvar/jsdom/issues/683#issuecomment-29352002

Which means recent changes to jsdom that broke html2jade will have to be resolved before using contestify-free version.

elcct commented 10 years ago

It works fine under Windows 8 x64.

Probably you need to follow this: https://github.com/TooTallNate/node-gyp#installation, but I installed it with Visual Studio 2012

donpark commented 10 years ago

version 0.7 has Windows support submitted by @pjeby. See #71