Package uploaded to NPM should not include .git directory
Closed this issue · 1 comments
rcook commented
This causes future npm install
commands to fail as follows:
npm ERR! code EISGIT
npm ERR! path /Users/name/src/electron-typescript-app/node_modules/electron-cgi
npm ERR! git /Users/name/src/electron-typescript-app/node_modules/electron-cgi: Appears to be a git repo or submodule.
npm ERR! git /Users/name/src/electron-typescript-app/node_modules/electron-cgi
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.
This also interferes with the use of git clean
and other git commands in the referencing project.
ruidfigueiredo commented