question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm error EISGIT on npm install

See original GitHub issue

I use this module in my project and up until very recently it was working fine.

Now it causes this error on npm install in my project…

npm ERR! path /builds/aabuhijleh/electron_desktop/rb-services/node_modules/mdbootstrap
npm ERR! code EISGIT
npm ERR! git /builds/aabuhijleh/electron_desktop/rb-services/node_modules/mdbootstrap: Appears to be a git repo or submodule.
npm ERR! git     /builds/aabuhijleh/electron_desktop/rb-services/node_modules/mdbootstrap
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

the issue is solved by

rm -rf node_modules/mdbootstrap/.git/

the git repository should be removed from the package.

mdbootstrap v4.7.4 used in electron OS: both Windows 7 and Ubuntu

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:13
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rahulnainwal107commented, Sep 27, 2019

i am geting the same error @deepankarsandy

1reaction
mattonitcommented, Mar 14, 2019

It’s an awful issue, but with the next update we’ll fix it up

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm ERR! code EISGIT, Appears to be a git repo or submodule
I get this when I do npm install . I'm happy to provide more info if needed. npm ERR! code EISGIT npm ERR!...
Read more >
How to update npm modules, ignoring a git repo
git directory, and throws the EISGIT error if it exists, so there is no way to ignore it or skip it. The code...
Read more >
Fixing the EISGIT npm appears to be a git repo or submodule ...
Fixing the EISGIT npm appears to be a git repo or submodule Error. This happened when i was deploying an app to heroku....
Read more >
React Native Notes 22: npm ERR! code EISGIT [Solution]
Just run this command, then npm i again and it will work. Simple but I recommend you to upgrade your RN version to...
Read more >
Npm error - Material Design for Bootstrap
npm install mdbootstrap works fine but when I want to install other packages I get: npm ERR! path /Users/xxxxx/code/yyyy/node_modules/mdbootstrap npm ERR!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found