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.

.git folder included in the npm distribution

See original GitHub issue

The presence of a .git folder means that the npm install errors out when run for the second time of a project as below:

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

Manually deleting the .git folder fixes it.

Could you please remove the .git folder from the distribution?

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
theturtle32commented, Jul 3, 2019

Released

2reactions
Gudahttcommented, Jun 26, 2019

@theturtle32 just wanted to remind you that this change is still awaiting release. If you could find the time, it would be greatly appreciated!

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Fetching npm module from GitHub brings ".git" folder
I recently forked an npm package and updated it for my needs. Then, I changed the dependency on packages.json to point to my...
Read more >
How to Distribute a Pattern Library as an npm Package from a ...
The pattern library is stored in a Git repo (this article is based on a private GitHub repo, but the process should work...
Read more >
Install NPM Packages from GitHub | Pluralsight
The npm command can install public packages from npmjs registry using the install command: · Sometimes packages are not published on the npmjs ......
Read more >
gitrepository-layout Documentation - Git
a <project>.git directory that is a bare repository (i.e. without its own working tree), that is typically used for exchanging histories with others...
Read more >
npm-pack
For anything that's installable (that is, a package folder, tarball, tarball url, git url, name@tag, name@version, name, or scoped name), this command will ......
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