IntelliJ Idea becomes unusable after running "npm install"

the node_modules directory is labled as library, but everytime I run `npm install` intellij becomes unusable while it perform indexing. This can take 10+ mins, and is a real productivity killer.

 

Is there anyway I can fix this?

Would there be any difference in using webstorm instead of intelliJ ultimate?

3 comments

>everytime I run `npm install` intellij becomes unusable while it perform indexing

npm install itself is rather resource-consuming, and IDEA has to index the direct dependencies added as a library

 

>Would there be any difference in using webstorm instead of intelliJ ultimate?

 

no, this functionality is the same in Webstorm and IDEA

0

is there anyway to limit the resources that intelliJ uses for indexing? While it would take longer to get code suggestions, etc. At least I could still work while it is indexing. currently I can't use the ide while it's indexing.

0

No way; but note that you can pause/resume indexing using the corresponding buttons shown to the right of indexing progress bar:

Note also that, when running `npm install` from within IDEA, indexing won't start till dependencies are installed - unless you switch focus from IDEA: switching focus back and forth causes synchronizing with external changes if Synchronize files on frame activation is enabled in Settings | Appearance & Behavior | System Settings

0

Please sign in to leave a comment.