For the most part, npm packages work fine on both Windows and nix platforms. However, it is pretty clear that most are developed on, and have fewest problems with, nix. I believe that is due to the massive popularity of Macs with the JavaScript-focused web dev crowd.