On Windows, you normally checkout with crlf line endings. When publishing to npm, you don't want this as it will break on *nix. Here's how to prevent:
git clone -c core.autocrlf=false https://github.com/org/npm-module.git
cd npm-module
# test it
npm pack
npm publish