How do I use Cursor to analyze all files in a specified directory under node_modules?
Typically, the node modules directory is part of the .cursorignore, and the cursor will not browse, edit, or try to do anything with that folder. You will need to remove the .cursorignore for this directory to get it to view it, or you can drag and drop a folder from the directory and sometimes that will work, but you might have an issue with cursor agent wanting to edit the folders/files.
Oh, I got it.
It’s true that sometimes it can’t perform the analysis. The first time I also dragged a directory in for analysis, and it didn’t work several times. After more than ten minutes, when I tried again, it worked. I didn’t set the.cursorrules. But it seems that the default “node_modules” directory will be ignored. It seems that as long as something related to “node_modules” is dragged in, it will be determined as ignored. It seemed to work again after I paid attention to avoiding dragging in such directories.