티스토리 뷰
Error
[npm] npm install error : code ERESOLVE ERESOLVE could not resolve
angieveloper 2022. 3. 8. 14:44node.js + typescript 세팅 중 아래와 같은 에러가 발생
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: ts-jest@27.1.3
npm ERR! Found: @types/jest@26.0.24
npm ERR! node_modules/@types/jest
npm ERR! dev @types/jest@"^26.0.23" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @types/jest@"^27.0.0" from ts-jest@27.1.3
npm ERR! node_modules/ts-jest
npm ERR! dev ts-jest@"^27.0.3" from the root project
npm ERR!
✨ 해결 방법
npm install <package.name>
마지막에 --save --legacy-peer-deps
태그 추가
npm install package.json --save --legacy-peer-deps
참고 : https://iancoding.tistory.com/154
'Error' 카테고리의 다른 글
[Linux] systemctl : failed to connect to bus (0) | 2022.08.17 |
---|---|
[npm/ubuntu] EACCESS Error (0) | 2022.03.11 |
[mac/brew] Error: Your Command Line Tools are too outdated. (0) | 2022.03.08 |
댓글