s-a / iso-8583

:credit_card: A native Node module to process ISO 8583 Financial transaction card originated messages
Other
76 stars 30 forks source link

NPM package without the .git file #12

Open gmgarciag opened 5 years ago

gmgarciag commented 5 years ago

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.
s-a commented 5 years ago

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 .git folder?

falahati commented 4 years ago

https://stackoverflow.com/questions/47634465/fetching-npm-module-from-github-brings-git-folder