从GitHub获取npm模块带来“.git”文件夹

我最近分发了一个npm包,并根据我的需要进行了更新。 然后,我改变了对packages.json的依赖,指向我的GitHub仓库,它工作正常。 但是,当npm安装模块时,它也带来了git文件夹( .git )。 因此,当我尝试安装其他任何东西时,npm给我这个错误:

 npm ERR! path /node_modules/react-native-static-server npm ERR! code EISGIT npm ERR! git /node_modules/react-native-static-server: Appears to be a git repo or submodule. npm ERR! git /node_modules/react-native-static-server npm ERR! git Refusing to remove it. Update manually, npm ERR! git or move it out of the way first. 

我究竟做错了什么? 如何避免下载.git文件夹?

你可以在这里查看回购: https : //github.com/dccarmo/react-native-static-server

编辑

在我的packages.json的依赖:

"react-native-static-server": "dccarmo/react-native-static-server"