You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
When installing a package, if a different package contains a .git directory, the install fails
with EISGIT. Note, there is as far as I can tell no need to do anything with the directory containing the .git directory; I do not know why it’s checked or touched at all. If there is some reason why it must be changed, EISGIT is a very confusing error message.
$ ls node_modules/@client/base/.git -ld
lrwxrwxrwx 1 petter petter 57 Jun 27 12:02 node_modules/@client/base/.git -> /mnt/scratch/shared/petter/witkit-devenv/client/base/.git
$ npm i fs-extra
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! path /mnt/scratch/shared/petter/witkit-devenv/client/root/node_modules/@client/base
npm ERR! code EISGIT
npm ERR! git /mnt/scratch/shared/petter/witkit-devenv/client/root/node_modules/@client/base: Appears to be a git repo or submodule.
npm ERR! git /mnt/scratch/shared/petter/witkit-devenv/client/root/node_modules/@client/base
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/petter/.npm/_logs/2017-06-27T19_09_33_849Z-debug.log
Note: I had previously opened this as #10372 but had it closed by the bot. Others have reported the same issue in #10933, also closed by the bot. Both issues attracted comments, so there are clearly others who feel it’s a problem, even if the npm CLI team thus far has not.
How can the CLI team reproduce the problem?
Just add a .git directory inside any package in node_modules and try to install something unrelated.
I'm opening this issue because:
What's going wrong?
When installing a package, if a different package contains a
.git
directory, the install failswith
EISGIT
. Note, there is as far as I can tell no need to do anything with the directory containing the.git
directory; I do not know why it’s checked or touched at all. If there is some reason why it must be changed,EISGIT
is a very confusing error message.npm-debug.log.txt
Note: I had previously opened this as #10372 but had it closed by the bot. Others have reported the same issue in #10933, also closed by the bot. Both issues attracted comments, so there are clearly others who feel it’s a problem, even if the npm CLI team thus far has not.
How can the CLI team reproduce the problem?
Just add a
.git
directory inside any package innode_modules
and try to install something unrelated.supporting information:
npm -v
prints: 5.0.4node -v
prints: v7.10.0npm config get registry
prints: http://npm.dev.witkit.com/The text was updated successfully, but these errors were encountered: