npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Any clue why NPM would start giving "ERR! fatal: git-submodule cannot be used without a working tree" errors?

I’ve previously successfully added a github repo directly as a dependency:
npm install “

But, for no reason I can determine, this has now stopped working and is giving me an error:
ERR! fatal: \git-submodule cannot be used without a working tree

Anyone got any clue as to what this means?

This is on Windows, if that helps.

Edit: further info - After a bit of debugging, I have determined that this actually works if I use the url “” instead. This is because it is doing a shallow clone, which doesn’t use --mirror, so isn’t a bare repository. I still don’t understand enough to know why it worked before, or how to make it work when it isn’t a shallow clone.