0 verbose cli C:\Users\hm9744\AppData\Local\Volta\tools\image\node\20.16.0\node.exe C:\Users\hm9744\AppData\Local\Volta\tools\image\node\20.16.0\node_modules\npm\bin\npm-cli.js
1 info using npm@10.8.1
2 info using node@v20.16.0
3 silly config load:file:C:\Users\hm9744\AppData\Local\Volta\tools\image\node\20.16.0\node_modules\npm\npmrc
4 silly config load:file:E:\workFile\hongruiyuan\hongruiyuan.npmrc
5 silly config load:file:C:\Users\hm9744.npmrc
6 silly config load:file:C:\Users\hm9744\AppData\Local\Volta\tools\image\node\20.16.0\etc\npmrc
7 verbose title npm install pinia@2.0.36
8 verbose argv "install" "pinia@2.0.36"
9 verbose logfile logs-max:10 dir:C:\Users\hm9744\AppData\Local\npm-cache_logs\2024-12-24T03_28_27_048Z-
10 verbose logfile C:\Users\hm9744\AppData\Local\npm-cache_logs\2024-12-24T03_28_27_048Z-debug-0.log
11 silly packumentCache heap:4345298944 maxSize:1086324736 maxEntrySize:543162368
12 silly logfile start cleaning logs, removing 1 files
13 silly logfile done cleaning log files
14 silly idealTree buildDeps
15 silly fetch manifest pinia@2.0.36
16 silly packumentCache full:https://registry.npmmirror.com/pinia cache-miss
17 http fetch GET 200 https://registry.npmmirror.com/pinia 207ms (cache hit)
18 silly packumentCache full:https://registry.npmmirror.com/pinia set size:475705 disposed:false
19 silly fetch manifest @vue/composition-api@^1.4.0
20 silly packumentCache full:https://registry.npmmirror.com/@vue%2fcomposition-api cache-miss
21 http fetch GET 200 https://registry.npmmirror.com/@vue%2fcomposition-api 195ms (cache revalidated)
22 silly packumentCache full:https://registry.npmmirror.com/@vue%2fcomposition-api set size:482542 disposed:false
23 silly fetch manifest vue@^3.4.21
24 silly packumentCache full:https://registry.npmmirror.com/vue cache-miss
25 http fetch GET 200 https://registry.npmmirror.com/vue 12ms (cache hit)
26 silly packumentCache full:https://registry.npmmirror.com/vue set size:1971232 disposed:false
27 silly fetch manifest vue@>= 2.5 < 2.7
28 silly packumentCache full:https://registry.npmmirror.com/vue cache-miss
29 http fetch GET 200 https://registry.npmmirror.com/vue 8ms (cache hit)
30 silly packumentCache full:https://registry.npmmirror.com/vue set size:1971232 disposed:false
31 silly fetch manifest typescript@^4.9.4
32 silly packumentCache full:https://registry.npmmirror.com/typescript cache-miss
33 http fetch GET 200 https://registry.npmmirror.com/typescript 30ms (cache hit)
34 silly packumentCache full:https://registry.npmmirror.com/typescript set size:12801491 disposed:false
35 verbose stack Error: could not resolve
35 verbose stack at PlaceDep.failPeerConflict (C:\Users\hm9744\AppData\Local\Volta\tools\image\node\20.16.0\node_modules\npm\node_modules@npmcli\arborist\lib\place-dep.js:503:25)
35 verbose stack at new PlaceDep (C:\Users\hm9744\AppData\Local\Volta\tools\image\node\20.16.0\node_modules\npm\node_modules@npmcli\arborist\lib\place-dep.js:157:21)
35 verbose stack at #buildDepStep (C:\Users\hm9744\AppData\Local\Volta\tools\image\node\20.16.0\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\build-ideal-tree.js:917:18)
35 verbose stack at async Arborist.buildIdealTree (C:\Users\hm9744\AppData\Local\Volta\tools\image\node\20.16.0\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\build-ideal-tree.js:181:7)
35 verbose stack at async Promise.all (index 1)
35 verbose stack at async Arborist.reify (C:\Users\hm9744\AppData\Local\Volta\tools\image\node\20.16.0\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\reify.js:131:5)
35 verbose stack at async Install.exec (C:\Users\hm9744\AppData\Local\Volta\tools\image\node\20.16.0\node_modules\npm\lib\commands\install.js:150:5)
35 verbose stack at async Npm.exec (C:\Users\hm9744\AppData\Local\Volta\tools\image\node\20.16.0\node_modules\npm\lib\npm.js:207:9)
35 verbose stack at async module.exports (C:\Users\hm9744\AppData\Local\Volta\tools\image\node\20.16.0\node_modules\npm\lib\cli\entry.js:74:5)
36 error code ERESOLVE
37 error ERESOLVE could not resolve
38 error
39 error While resolving: uni-preset-vue@0.0.0
39 error Found: vue@3.4.21[2m[22m
39 error [2mnode_modules/vue[22m
39 error [95mpeer[39m vue@"^3.2.25" from @vitejs/plugin-vue@5.1.0[2m[22m
39 error [2mnode_modules/@vitejs/plugin-vue[22m
39 error @vitejs/plugin-vue@"5.1.0" from @dcloudio/uni-app-vite@3.0.0-4020820240925001[2m[22m
39 error [2mnode_modules/@dcloudio/uni-app-vite[22m
39 error @dcloudio/uni-app-vite@"3.0.0-4020820240925001" from @dcloudio/uni-app-harmony@3.0.0-4020820240925001[2m[22m
39 error [2mnode_modules/@dcloudio/uni-app-harmony[22m
39 error @dcloudio/uni-app-harmony@"3.0.0-4020820240925001" from the root project
39 error 1 more (@dcloudio/uni-app-plus)
39 error @vitejs/plugin-vue@"5.1.0" from @dcloudio/vite-plugin-uni@3.0.0-4020820240925001[2m[22m
39 error [2mnode_modules/@dcloudio/vite-plugin-uni[22m
39 error [34mdev[39m @dcloudio/vite-plugin-uni@"3.0.0-4020820240925001" from the root project
39 error [95mpeer[39m vue@"^3.0.0" from @vitejs/plugin-vue-jsx@3.1.0[2m[22m
39 error [2mnode_modules/@vitejs/plugin-vue-jsx[22m
39 error @vitejs/plugin-vue-jsx@"3.1.0" from @dcloudio/vite-plugin-uni@3.0.0-4020820240925001[2m[22m
39 error [2mnode_modules/@dcloudio/vite-plugin-uni[22m
39 error [34mdev[39m @dcloudio/vite-plugin-uni@"3.0.0-4020820240925001" from the root project
39 error 4 more (@vue/server-renderer, vue-i18n, vue-router, the root project)
39 error
39 error Could not resolve dependency:
39 error pinia@"2.0.36" from the root project
39 error
39 error Conflicting peer dependency: vue@3.5.13[2m[22m
39 error [2mnode_modules/vue[22m
39 error [95mpeer[39m vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.2[2m[22m
39 error [2mnode_modules/@vue/composition-api[22m
39 error peerOptional @vue/composition-api@"^1.4.0" from pinia@2.0.36[2m[22m
39 error [2mnode_modules/pinia[22m
39 error pinia@"2.0.36" from the root project
39 error
39 error Fix the upstream dependency conflict, or retry
39 error this command with --force or --legacy-peer-deps
39 error to accept an incorrect (and potentially broken) dependency resolution.
40 error
40 error
40 error For a full report see:
40 error C:\Users\hm9744\AppData\Local\npm-cache_logs\2024-12-24T03_28_27_048Z-eresolve-report.txt
41 silly unfinished npm timer reify 1735010907450
42 silly unfinished npm timer reify:loadTrees 1735010907455
43 silly unfinished npm timer idealTree:buildDeps 1735010907903
44 silly unfinished npm timer idealTree:#root 1735010907904
45 verbose cwd E:\workFile\hongruiyuan\hongruiyuan
46 verbose os Windows_NT 10.0.18362
47 verbose node v20.16.0
48 verbose npm v10.8.1
49 verbose exit 1
50 verbose code 1
51 error A complete log of this run can be found in: C:\Users\hm9744\AppData\Local\npm-cache_logs\2024-12-24T03_28_27_048Z-debug-0.log
It looks like you're encountering a dependency conflict while trying to install pinia@2.0.36. The main issue is a conflict between the Vue versions required by different packages in your project. Here's a breakdown of the problem:
pinia@2.0.36 has a peer dependency on @vue/composition-api@^1.4.0, which in turn requires Vue version ">= 2.5 < 2.7".@vue/composition-api.To resolve this issue, you have a few options:
Use a newer version of Pinia: The version you're trying to install (2.0.36) is quite old. Newer versions of Pinia are fully compatible with Vue 3. Try installing the latest version:
npm install pinia@latestUse the --force flag:
This will install the package regardless of conflicts, but it might lead to issues:
npm install pinia@2.0.36 --forceUse --legacy-peer-deps:
This ignores peer dependency conflicts:
npm install pinia@2.0.36 --legacy-peer-depsI recommend trying option 1 first, as using the latest version of Pinia is likely the best solution. If you have a specific reason for needing version 2.0.36, please let me know, and we can explore other options.
Also, I noticed you're using a uni-app project. If you're developing for multiple platforms, make sure all your dependencies are compatible with your uni-app setup.
Would you like me to provide a code snippet to update your package.json or any other assistance with resolving this dependency issue?