Trying to remove the node_modules directory created by
The source file name(s) are larger than is supported by the file system. Try moving to a location that has a shorter path name, or try renaming to shorter name(s) before attempting this operation
I also tried using windows shortcut key shift + delete and
rimraf NPM package, still having the same issue.
Using ‘Git Bash’ to remove the folder is the simplest way to remove all folders including subfolders in the ‘node modules’. It will take a while to delete everything, but it works without any installation.
Open the project’s root folder then right-click and choose ‘Git Bash Here’, and use this command to remove the node modules folder.
rm -r node_modules
If this option is not visible to you then probably you have not installed the git version control use the below link to download it and start and follow the same by using it and explore more on this.