webstorm 卡死解決方法

方法1: 
先在外部終端清空node-modules目錄,包括隱藏文件,再打開Webstorm,打開Project Structure頁面,選中工程,選擇node_modules目錄(沒有的話本身先新建一個空目錄),而後點擊上面的 Mark as Excluded,保存後再安裝模塊。
node

方法2:markdown

對比修改增長文件 .idea/{項目名稱}.imlide

<?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>

小坑:
若是出現<orderEntry type="library" name="test node_modules" level="project" /> 仍然會進行加載卡死  應刪去<orderEntry type="library" name="test node_modules" level="project" />
相關文章
相關標籤/搜索