inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

[웹 개발 풀스택 코스] 포트폴리오 - 제품 판매 미니 웹 앱 개발

Vue.js 프로젝트 기본 구조 생성

vue dependency 설정으로 문의가 있습니다.

1177

linklilla29

작성한 질문수 1

0

현재 github에 작성된 client(vue3) dependency를 사용하니 에러가 발생해서

project\client>npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @vue/eslint-config-standard@6.1.0
npm ERR! Found: eslint-plugin-vue@8.7.1
npm ERR! node_modules/eslint-plugin-vue
npm ERR!   dev eslint-plugin-vue@"^8.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm ERR! node_modules/@vue/eslint-config-standard
npm ERR!   dev @vue/eslint-config-standard@"^6.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: eslint-plugin-vue@7.20.0
npm ERR! node_modules/eslint-plugin-vue
npm ERR!   peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm ERR!   node_modules/@vue/eslint-config-standard
npm ERR!     dev @vue/eslint-config-standard@"^6.1.0" 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! C:\Users\user\AppData\Local\npm-cache\_logs\2023-09-25T04_17_40_745Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\user\AppData\Local\npm-cache\_logs\2023-09-25T04_17_40_745Z-debug-0.log
@fortawesome/fontawesome-svg-core: 6.4.2
@fortawesome/free-regular-svg-icons: 6.4.2
@fortawesome/free-solid-svg-icons: 6.4.2
@fortawesome/vue-fontawesome: 3.0.0-5
@fullcalendar/core: 6.1.9
@fullcalendar/daygrid: 6.1.9
@fullcalendar/interaction: 6.1.9
@fullcalendar/timegrid: 6.1.9
@fullcalendar/vue3: 5.11.1
apexcharts: 3.35.3
vue3-apexcharts: 1.4.4

따라서 사용하는 dependency는 아래와 같습니다.

아래 버전으로 사용해도 강의를 따라가는데 지장이 없을까요?

  "dependencies": {
    "@fortawesome/fontawesome-svg-core": "^6.4.2",
    "@fortawesome/free-regular-svg-icons": "^6.4.2",
    "@fortawesome/free-solid-svg-icons": "^6.4.2",
    "@fortawesome/vue-fontawesome": "^3.0.0-5",
    "@fullcalendar/core": "^6.1.9",
    "@fullcalendar/daygrid": "^6.1.9",
    "@fullcalendar/interaction": "^6.1.9",
    "@fullcalendar/timegrid": "^6.1.9",
    "@fullcalendar/vue3": "^5.11.1",
    "apexcharts": "^3.35.3",
    "axios": "^0.27.2",
    "bootstrap": "^5.1.3",
    "core-js": "^3.8.3",
    "exceljs": "^4.3.0",
    "file-saver": "^2.0.5",
    "vue": "^3.2.13",
    "vue-cookies": "^1.8.1",
    "vue-good-table-next": "^0.2.1",
    "vue-loading-overlay": "^5.0.3",
    "vue-router": "^4.0.3",
    "vue-sweetalert2": "^5.0.5",
    "vue3-apexcharts": "^1.4.4",
    "vuex": "^4.0.0",
    "vuex-persistedstate": "^4.1.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.16",
    "@babel/eslint-parser": "^7.12.16",
    "@vue/cli-plugin-babel": "~5.0.0",
    "@vue/cli-plugin-eslint": "~5.0.0",
    "@vue/cli-plugin-router": "~5.0.0",
    "@vue/cli-plugin-vuex": "~5.0.0",
    "@vue/cli-service": "~5.0.0",
    "@vue/eslint-config-standard": "^6.1.0",
    "eslint": "^7.32.0",
    "eslint-plugin-import": "^2.25.3",
    "eslint-plugin-node": "^11.1.0",
    "eslint-plugin-promise": "^5.1.0",
    "eslint-plugin-vue": "^7.0.0"
  },

npm install을 시도하니 문제는 없었습니다.

C:project\client>npm install
npm WARN deprecated shvl@2.0.3: older versions vulnerable to prototype pollution
npm WARN deprecated vuex-persistedstate@4.1.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

added 110 packages, removed 9 packages, changed 4 packages, and audited 1148 packages in 1m

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

1 low severity vulnerability

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

웹앱 포트폴리오

답변 2

0

개발자의 품격

dependency 수정하지 마시고

npm install 명령어를 실행할 때, –force 또는 –legacy-peer-deps 옵션을 추가하여 강제로 의존성을 설치해보세요.

-1

인프런 AI 인턴

안녕하세요, 인프런 AI 인턴이에요.

에러가 발생한 원인은 vue dependency 관련 문제로 보입니다. 보고된 오류의 내용을 보면, “@vue/eslint-config-standard@6.1.0” 패키지가 “eslint-plugin-vue” 패키지의 버전 “7.0.0”과 충돌하기 때문에 발생한 오류이네요.

오류 해결을 위해 다음과 같은 방법을 시도해볼 수 있어요.
1. package.json 파일에서 “@vue/eslint-config-standard” 패키지의 버전을 “6.1.0”에서 “7.0.0”으로 업데이트해보세요.
2. npm install 명령어를 실행할 때, –force 또는 –legacy-peer-deps 옵션을 추가하여 강제로 의존성을 설치해보세요.
3. 오류 메시지에 나오는 경로에 있는 에러 로그 파일을 확인하여 자세한 오류 내용을 확인해보세요.

만약 위의 방법으로 해결되지 않는다면, 오류가 발생한 프로젝트의 환경과 종속성을 더 자세히 알아야 할 것 같아요. 추가 정보를 제공해주시면 더 도움을 드릴 수 있을 것 같아요.

state 객체로 묶기

0

22

1

프로젝트 영역 질문

0

24

2

주니어 이력서 작성방법

0

50

3

Json 플러그인 사용시 variable collection 없음

0

33

2

실습자료 확인 요청

0

54

2

배리어블 목록 없음

0

34

3

Token 등록 방법 문의

0

26

1

쿠폰 문의 드립니다.

0

26

2

최근 코테, 과제 테스트 트렌드

0

83

2

노션 25 인터렉션 구현 파트 안 보입니다!

0

44

2

sdk 설정 오류

0

55

2

섹션3 Shadcn/ui 생성 시

0

107

1

저는 왜 콘솔에서 props가 한 줄만 찍히나요?

0

49

1

figma variable 반응형 디자인 결과물 공란

0

70

2

게임 프로그래밍 독학 로드맵 조언 부탁드립니다.

0

140

2

경력의 포트폴리오

2

140

2

섹션2 tailwindcss 퀴즈에 대해서

0

59

2

이력서에 관해 궁금한점이 있어 질문드립니다.

1

92

2

오탈자 - @Transactional

0

56

1

개인 프로젝트로 앱 개발해서 다운로드 1300 달성했는데 어느 정도 의미가 있을까요? (안드로이드 개발자)

0

75

1

제품등록에서 갑자기 에러가 납니다

0

273

1

EditView 파트 관련 질문드립니다

0

231

1

소스 코드 제공 여부

0

407

1

실운영 서버에 배포 관련 질문 드립니다~

0

862

1