Getting error while removing node_modules
in git, vscode terminal
git rm -r --cached node_modules
Error:
The error means node_modules
directory is not under git version control. There are 2 possibilities:
They are not added to Git
yet. Try running git status
command, to see whether they appear as untracked
files.
It has already been added into your gitignore
file. To list all ignored files, try this command: git ls-files --others -i --exclude-standard