[잡담] Windows에서 Node 버전이 너무 낮아서 typescript CRA가 안먹혔다.

telnet turtle·2022년 12월 8일
0
post-thumbnail

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

https://nodejs.org/ko/

최신 버전은 18 LTS 였다 OTL 설치해둔 게 왜이렇게 낮은거지..

그래서 WSL로 옮겨가서 작업했다.

❯ node -v
v16.14.0

여기도 LTS는 아니지만 위에 적힌 요구사항은 만족시킬 수 있으니깐 괜찮을것이다.

Happy hacking!
Done in 58.20s.

잘 된다.

참고로 Windows에서 Node 버전을 바꾸려면 NVM이라는걸 써보는걸 추천한다.

profile
프론트엔드 엔지니어

0개의 댓글