kaogeek / bkk-ptc-budget

Bangkok Participatory Budgeting
7 stars 5 forks source link

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

Open wasdee opened 1 year ago

wasdee commented 1 year ago

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 commented 1 year ago

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/composition-api@0.33.1 npm ERR! Found: nuxt@3.5.3 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/devtools@0.5.5 npm ERR! node_modules/@nuxt/devtools ct npm ERR! npm ERR! Conflicting peer dependency: nuxt@2.17.0 npm ERR! node_modules/nuxt npm ERR! peer nuxt@"^2.15" from @nuxtjs/composition-api@0.33.1npm 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 commented 1 year ago

npm install --legacy-peer-deps

wasdee commented 1 year ago

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

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

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

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