로그/문제상황
전역으로 설치된 eslint 없애기
차정
2023. 3. 11. 12:21
전역으로 eslint를 설치하는 것은 권장되지 않는다고 한다.
It is also possible to install ESLint globally, rather than locally, using npm install eslint --global. However, this is not recommended, and any plugins or shareable configs that you use must still be installed locally if you install ESLint globally.
- 현재 전역적으로 설치된 패키지가 어떤게 있는지 확인하는 방법
- 명령어로 확인
npm list -g --depth=0
- 전역적으로 node_module 설치된 경로로 이동해서 직접 확인
cd /usr/local/lib/node\_modules
ls
- 전역적으로 설치된 eslint 삭제
npm uninstall -g eslint