본문 바로가기
쬬는 개발중

[ERR 오류해결] @eslint/eslintrc@1.2.2: The engine "node" is incompatible with this module. Expected version "^12.22.0 || ^14.17.0 || >=16.0.0". Got "14.15.5"

by Joooooooo 2023. 7. 31.
반응형

1. 버전오류 발견

전에 없던 오류인데 갑자기 떠서 검색해보니 구선생님도 모른다는 소식에 좌절하고 있었다 ㅠㅠ
심지어 설치파일에는 next 에 당연히 들어있어야하는 pages폴더도 없고.. 아무것도 존재하지 않은 상태..!

분명 버전문제같아 찾아봤는데 도무지 모르겠어서 이것저것 검색하던 중 해결점을 찾았다!

 

 

Installing devDependencies:
- eslint
- eslint-config-next
yarn add v1.22.18
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
error @eslint/eslintrc@1.2.2: The engine "node" is incompatible with this module. Expected version "^12.22.0 || ^14.17.0 || >=16.0.0". Got "14.15.5"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Aborting installation.
  yarn add --exact --cwd /Users/whdms3368/Desktop/nextjs-blog/my-app --dev eslint eslint-config-next has failed.

 

 

 

 

 

 

2. 최신 업데이트 실행하기

처음엔 yarn부분에 문제가 있는줄 알았는데 ㅠㅠ node를 최신 업데이트 해주면 되는 아주 간단한 문제였다
나같은 초보에겐 버전관리 너무 어려움...

 

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

 

 

 

 

 

 

 

2. 결과적으로 성공

 

 

 

반응형