.git folder included in the npm distribution
See original GitHub issueThe 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:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released
@theturtle32 just wanted to remind you that this change is still awaiting release. If you could find the time, it would be greatly appreciated!