Create react app을 사용해서 typescript 프로젝트를 생성했는데..
> yarn create react-app . --template typescript
..
error eslint@8.29.0: The engine "node" is incompatible with this module. Expected version "^12.22.0 || ^14.17.0 || >=16.0.0". Got "14.15.3"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
설치가 되지 않았다.
> node -v
v14.15.3
최신 버전은 18 LTS 였다 OTL 설치해둔 게 왜이렇게 낮은거지..
그래서 WSL로 옮겨가서 작업했다.
❯ node -v
v16.14.0
여기도 LTS는 아니지만 위에 적힌 요구사항은 만족시킬 수 있으니깐 괜찮을것이다.
Happy hacking!
Done in 58.20s.
잘 된다.
참고로 Windows에서 Node 버전을 바꾸려면 NVM이라는걸 써보는걸 추천한다.