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.

"Appears to be a git repo or submodule" error w/ npm 3

See original GitHub issue
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/iojs" "/Users/casey/.npm/bin/npm" "install"
npm ERR! node v4.1.0
npm ERR! npm  v3.2.1
npm ERR! path /Users/casey/Code/UniversitySite/node_modules/flippant
npm ERR! code EISGIT

npm ERR! git Appears to be a git repo or submodule.
npm ERR! git     /Users/casey/Code/UniversitySite/node_modules/flippant
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/casey/Code/UniversitySite/npm-debug.log

and relevant package.json section

"napa": {
  "flippant": "mintchaos/flippant.js",
}

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
caseyWebbcommented, Oct 6, 2015

My current workaround modifying the install script in package.json to napa && rm -rf node_modules/*/.git/

3reactions
Lucciniolocommented, Oct 5, 2016

Hello,

The same now :

npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/home/*/.nvm/versions/node/v6.7.0/bin/node" "/home/*/.nvm/versions/node/v6.7.0/bin/npm" "install"
npm ERR! node v6.7.0
npm ERR! npm  v3.10.3
npm ERR! path /home/*/*/node_modules/jquery-slimscroll
npm ERR! code EISGIT

npm ERR! git /home/*/*/node_modules/jquery-slimscroll: Appears to be a git repo or submodule.
npm ERR! git     /home/*/*/node_modules/jquery-slimscroll
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

best regards,

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm ERR! code EISGIT, Appears to be a git repo or submodule
Try to clone the repo again (in another directory) and run npm install.
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 >
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 >
git-submodule Documentation - Git
With no arguments, shows the status of existing submodules. ... Add the given repository as a submodule at the given path to the...
Read more >
Git submodule - Atlassian
A git submodule is a record within a host git repository that points to a specific commit in another external repository. Learn more...
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