Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

플러그인 설치 중 오류 #96

Open
HawaiiBlackSand opened this issue Mar 16, 2023 · 0 comments
Open

플러그인 설치 중 오류 #96

HawaiiBlackSand opened this issue Mar 16, 2023 · 0 comments

Comments

@HawaiiBlackSand
Copy link

안녕하세요. 이번에 capacitor를 통해서 iamport 플러그인 설치를 해보려고 했는데 잘 되지 않아서요

capasitor를 사용해보라고 하셨는데 정보를 얻을 곳이 너무 없어서 질문드립니다.

npm init @capacitor/app (um 디렉토리에 um이라는 이름으로 프로젝트 생성)
cd um
npm install
npm start
npx cap add android
npm run build
npx cap sync
npx cap open android

이렇게 하고 안드로이드 스튜디오에서 애뮬레이터로 run app 해보면 잘 실행되는 것 확인했습니다.

그리고
npm install iamport-capacitor --save
명령어를 입력하면 이런 에러가 뜹니다.

`npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @capacitor/[email protected]
npm ERR! node_modules/@capacitor/core
npm ERR! peer @capacitor/core@"^4.0.0" from @capacitor/[email protected]
npm ERR! node_modules/@capacitor/camera
npm ERR! @capacitor/camera@"latest" from the root project
npm ERR! peer @capacitor/core@"^4.0.0" from @capacitor/[email protected]
npm ERR! node_modules/@capacitor/splash-screen
npm ERR! @capacitor/splash-screen@"latest" from the root project
npm ERR! 1 more (the root project)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! iamport-capacitor@"" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @capacitor/[email protected]
npm ERR! node_modules/@capacitor/core
npm ERR! peer @capacitor/core@"^3.0.0" from [email protected]
npm ERR! node_modules/iamport-capacitor
npm ERR! iamport-capacitor@"
" 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!
npm ERR! For a full report see:
npm ERR! /Users/ihansaem/.npm/_logs/2023-03-16T09_03_02_537Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ihansaem/.npm/_logs/2023-03-16T09_03_02_537Z-debug-0.log`

제가 뭘 잘못한걸까요?

npm install iamport-capacitor --save --force 명령어를 사용하면 설치가 되긴 하는데 이렇게 설치해도 되는지도 궁금합니다.

시간되실때 답변해주시면 감사하겠습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant