Reputation: 26132
I've got two questions:
1) Is it possible to build modules for node.js in windows?
2) Can compiled libraries (*.node) be incompatible between *nix and windows versions of node?
Upvotes: 1
Views: 3018
Reputation: 1979
Answer for anyone coming across this old question:
Yes this is now possible with node-gyp which replaces node-waf.
https://github.com/TooTallNate/node-gyp
Upvotes: 1
Reputation: 63663
1) As far as I've seen when installing things for my application in Windows with NPM, some modules are indeed compiled (if I'm not mistaken, the MongoDB module is one of them).
2) I'm not an expert in C or C++, but the advice is to compile modules each time you "move" your app to a different OS. Take for example the Node hosting services no.de and nodejitsu, they ask you for the package.json file and install dependencies themselves.
Upvotes: 1