Error occurs when upgrading or attempting to re-install package on top of itself. The problem seems to be related to the fact that the .git directory is included in the package distribution. Can this be removed?
To reproduce:
$ npm install ng-apimock
$ npm install ng-apimock
Installing the first time seems to work fine, the second install produces the following error:
npm ERR! path /foo/node_modules/ng-apimock
npm ERR! code EISGIT
npm ERR! git /foo/node_modules/ng-apimock: Appears to be a git repo or submodule.
npm ERR! git /foo/node_modules/ng-apimock
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.
Error occurs when upgrading or attempting to re-install package on top of itself. The problem seems to be related to the fact that the
.git
directory is included in the package distribution. Can this be removed?To reproduce:
Installing the first time seems to work fine, the second install produces the following error: