GcsSloop / GcsSloop/web-note

WebStorm/IDEA 无法正常显示 node_modules 文件夹

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## 现象
- WebStorm/IDEA 无法正常显示 node_modules 文件夹
- 项目中所有第三方库的引用均显示红色波浪线

## 可能原因

编辑器的忽略文件中添加了针对于 node_modules 的忽略信息,导致项目索引时直接忽略了 node_modules 文件夹,进而引发第三方库显示红色波浪线的问题。

## 解决方案

1. 到 File -> Setting -> Editor -> FileTypes 中取消针对于 node_modules 的忽略

iShot2021-06-11 16 45 22

2. 标注 node_modules 为排除

iShot2021-06-11 16 47 56

3. 不显示排除文件夹(可选)

iShot2021-06-11 16 50 01

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.