Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.git folder in the npm package causes errors on npm install #4

Open
JacksonBates opened this issue Jan 27, 2020 · 0 comments
Open

.git folder in the npm package causes errors on npm install #4

JacksonBates opened this issue Jan 27, 2020 · 0 comments

Comments

@JacksonBates
Copy link

Related to this: APSL/react-native-version-number#13

Running npm i after installing this package causes the EISGIT error below:

npm ERR! path /home/jackson/dev/admin/node_modules/sw-precache-cra
npm ERR! code EISGIT
npm ERR! git /home/jackson/dev/admin/node_modules/sw-precache-cra: Appears to be a git repo or submodule.
npm ERR! git     /home/jackson/dev/admin/node_modules/sw-precache-cra
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

According to the link above, it can be remedied by removing the .git folder from the npm package.

My current work around is to include the preinstall script mentioned in the link above, and adding the script to my Bitbucket pipeline for deployments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant