Closed wuhaixing closed 10 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.
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
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.
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.
It's the Contextify
package used by jsdom
that uses native code. Hope that changes soon.
Good news: node 0.7 will include contextify
-like feature. Bad news: 0.7 is months away.
Months have passed...
@enzy have you tried installing after making sure Windows-specific requirements listed at https://github.com/tmpvar/jsdom#Windows are met?
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.
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
version 0.7 has Windows support submitted by @pjeby. See #71
cann't figure out how to run it on windows