examples icon indicating copy to clipboard operation
examples copied to clipboard

Error when trying to use vue example

Open dioubernardo opened this issue 1 year ago • 3 comments

git clone https://github.com/twbs/examples.git cd examples/vue/ npm install

npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @vitejs/[email protected] npm ERR! Found: [email protected] npm ERR! node_modules/vue npm ERR! vue@"file:" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer vue@"^3.2.25" from @vitejs/[email protected] npm ERR! node_modules/@vitejs/plugin-vue npm ERR! dev @vitejs/plugin-vue@"^5.1.4" from the root project npm ERR! npm ERR! Conflicting peer dependency: [email protected] npm ERR! node_modules/vue npm ERR! peer vue@"^3.2.25" from @vitejs/[email protected] npm ERR! node_modules/@vitejs/plugin-vue npm ERR! dev @vitejs/plugin-vue@"^5.1.4" 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!

dioubernardo avatar Dec 13 '24 14:12 dioubernardo

Hello @dioubernardo Just tried the same manipulation and it works on my side. It also works directly in StackBlitz: https://stackblitz.com/github/twbs/examples/tree/main/vue?file=index.html. Maybe you're using an old version of Node/npm?

julien-deramond avatar Dec 13 '24 14:12 julien-deramond

In Windows 10

node --version v22.12.0

npm --version 10.2.5

dioubernardo avatar Dec 13 '24 17:12 dioubernardo

I don't have a Windows environment set up, but perhaps @louismaximepiton or another user could help by trying to reproduce the issue.

julien-deramond avatar Dec 16 '24 09:12 julien-deramond