ERESOLVE could not resolve

Jmnote (토론 | 기여)님의 2022년 9월 29일 (목) 10:46 판 (새 문서: ==개요== ;ERESOLVE could not resolve <syntaxhighlight lang='console'> tester@localhost:~/gopath/src/github.com/kuoss/venti/web$ npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

ERESOLVE could not resolve
tester@localhost:~/gopath/src/github.com/kuoss/venti/web$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: nightwind@1.1.12
npm ERR! Found: tailwindcss@3.0.24
npm ERR! node_modules/tailwindcss
npm ERR!   dev tailwindcss@"^3.0.24" from the root project
npm ERR!   tailwindcss@">1.9.6" from tailwind-scrollbar@1.3.1
npm ERR!   node_modules/tailwind-scrollbar
npm ERR!     dev tailwind-scrollbar@"^1.3.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer tailwindcss@"^2.0.0" from nightwind@1.1.12
npm ERR! node_modules/nightwind
npm ERR!   dev nightwind@"^1.1.12" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: tailwindcss@2.2.19
npm ERR! node_modules/tailwindcss
npm ERR!   peer tailwindcss@"^2.0.0" from nightwind@1.1.12
npm ERR!   node_modules/nightwind
npm ERR!     dev nightwind@"^1.1.12" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/tester/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/tester/.npm/_logs/2022-09-29T01_19_14_640Z-debug-0.log
→ nightwind 1.1.12는 tailwindcss 3.x를 지원하지 않는다.
tester@localhost:~/gopath/src/github.com/kuoss/venti/web$ cat package.json | egrep 'tailwindcss|nightwind'
    "nightwind": "^1.1.12",
    "tailwindcss": "^3.0.24",
tester@localhost:~/workspace/venti/web$ vi package.json
→ package.json에서 tailwindcss 행을 삭제 후 저장하자.
tester@localhost:~/workspace/venti/web$ npm install

up to date, audited 252 packages in 924ms

40 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
→ npm install이 정상 수행된다.
$ cat package-lock.json | grep tailwindcss-
      "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-2.2.19.tgz",
      "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-2.2.19.tgz",
→ nightwind 버전에 맞는 tailwindcss 버전(2.2.19)으로 설치되었다.

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}