
Foreword:
When we use webstorm, we sometimes encounter stuck problems, so how do we solve this problem?
(Learning video sharing: Introduction to Programming)
Method 1:
First clear the node-modules directory, including hidden files, in the external terminal, and then Open Webstorm, open the Project Structure page, select the project, select the node_modules directory (if not, create an empty directory first), then click Mark as Excluded above, save and then install the module.
Method 2:
Compare and modify the file .idea/{project name}.iml
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/node_modules" />
<excludeFolder url="file://$MODULE_DIR$/test" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="test node_modules" level="project" />
</component>
</module>Small pit:

If
Related recommendations: webstorm usage tutorial
The above is the detailed content of What should I do if webstorm always freezes?. For more information, please follow other related articles on the PHP Chinese website!