The number of foldable regions is limited to a maximum of 5000. Increase configuration option 'Folding Maximum Regions' to enable more

Viewed 11260

I am facing this issue while installing npm in vs codeenter image description here

I have deleted node modules folder and installing again

3 Answers

This happen if you open a large file (I got this notification when I opened a file with 60000 lines). Consider increasing this value to avoid this notification

This happens when you use the internal terminal of VS Code to install npm modules. You can just close and reopen the VS code after installing the modules and the error won't come again.

Just close the terminal and start a new one to get rid of the error. Also, you have to start your environment with (npm start) or (yarn start) in new terminal.

Related