mdasberg / ng-apimock

Node plugin that provides the ability to use scenario based api mocking: for local development for protractor testing
MIT License
99 stars 26 forks source link

Error when updating or re-installing package #45

Closed emartinez-usgs closed 6 years ago

emartinez-usgs commented 6 years ago

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.
mdasberg commented 6 years ago

Thank you for reporting this issue. I will make a fix for it.

mdasberg commented 6 years ago

version 1.4.6 has been released which fixes this.

emartinez-usgs commented 6 years ago

Fix works great. Thank you. 👍