Npm err! fatal: not a git repository: /home/node/app/../../.git/modules/

In this article let’s discuss about Npm err! fatal: not a git repository: /home/node/app/../../.git/modules/. Let’s go through the following methods without any delay.

Method 1:

I solved this issue by reseting all git-submodules with

rm -rf .git/modules
git submodule update --init

Hope the above solution works.

Realted Posts : How to see ssh key