webstorm 卡死解決方法


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

方法2:

對比修改增加文件 .idea/{項目名稱}.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>

小坑:
如果出現<orderEntry type="library" name="test node_modules" level="project" /> 仍然會進行加載卡死  應刪去


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM