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

add npm install --legacy-peer-deps to docs #6

Open
wasdee opened this issue Jun 21, 2023 · 3 comments
Open

add npm install --legacy-peer-deps to docs #6

wasdee opened this issue Jun 21, 2023 · 3 comments

Comments

@wasdee
Copy link

wasdee commented Jun 21, 2023

Setup

Windows, Node18 LTS, pnpm

Reproduce

cd frontend
pnpm install
pnpm dev
Terminal
pnpm install
Lockfile is up to date, resolution step is skipped
Already up to date

> nuxt-app@ postinstall C:\Users\lifep\Documents\GitHub\bkk-ptc-budget\frontend
> nuxt prepare

[8:43:04 pm] Nuxi 3.5.2
[8:43:07 pm] ✔ Types generated in .nuxt
Done in 4.1s


[8:50:03 pm] Nuxi 3.5.2
[8:50:03 pm] Nuxt 3.5.2 with Nitro 2.4.1
[8:50:05 pm]
  > Local:    http://localhost:3000/
  > Network:  http://172.18.0.1:3000/
  > Network:  http://172.30.80.1:3000/
  > Network:  http://192.168.248.72:3000/

[8:50:09 pm] ✔ Nuxt Devtools is enabled v0.6.2 (experimental)
[8:50:14 pm] ℹ Vite client warmed up in 2183ms
[nitro 8:50:15 pm] ✔ Nitro built in 717 ms

image

Expect

dev env ready

@wasdee
Copy link
Author

wasdee commented Jun 21, 2023

error at npm install
image

Details
bkk-ptc-budget\frontend on  main [?] via  v18.15.0 took 5s    
❯ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @nuxtjs/[email protected]        
npm ERR! Found: [email protected]
npm ERR! node_modules/nuxt
npm ERR!   dev nuxt@"^3.5.2" from the root project
npm ERR!   peer nuxt@"^3.5.1" from @nuxt/[email protected]
npm ERR!   node_modules/@nuxt/devtools
ct
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/nuxt
npm ERR!   peer nuxt@"^2.15" from @nuxtjs/[email protected] ERR!   node_modules/@nuxtjs/composition-api
npm ERR!     @nuxtjs/composition-api@"^0.33.1" 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\lifep\AppData\Local\npm-cache\_logs\2023-06-21T13_57_47_104Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\lifep\AppData\Local\npm-cache\_logs\2023-06-21T13_57_47_104Z-debug-0.log

@bovornsiriampairat
Copy link
Collaborator

npm install --legacy-peer-deps

@wasdee
Copy link
Author

wasdee commented Jun 21, 2023

image
ทำงานได้แล้วครับ 👍

น่าจะต้องเพิ่มใน docs เข้าไปด้วย จะได้ setup กันถูก

@bovornsiriampairat จริงๆ project สร้างใหม่ ไม่น่าจะติดพวกนี้

ผมเปลี่ยน issue เป็น actionable นะครับ

@wasdee wasdee changed the title frontend build fails add npm install --legacy-peer-deps to docs Jun 21, 2023
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

2 participants