When you upload the package to NPM you need to ignore the .git file, because you get an error when you try to install or update the package.
~ » npm install -g iso-8583
npm ERR! path /usr/local/lib/node_modules/iso-8583
npm ERR! code EISGIT
npm ERR! git /usr/local/lib/node_modules/iso-8583: Appears to be a git repo or submodule.
npm ERR! git /usr/local/lib/node_modules/iso-8583
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.
Hi, I ve published so many NPM modules and never experienced this. I wonder why you want to install the module globally? Can you point me to NPM docs to read more about ignoring .gitfolder?
When you upload the package to NPM you need to ignore the .git file, because you get an error when you try to install or update the package.