npm error when installing pinia
envgap__vuejs__pinia-853
Original GitHub issue ↗Opened 2021-11-29
01 / FAILURE SIGNATURE
As reported upstream
> ERESOLVE unable to resolve dependency tree
Not a benchmark task.
- No curated issue-specific recipe or verified environment fix is available.
02 / ENVIRONMENT RECIPE
- Base commit
Not freshly verified- Manifest
package.json- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
vuejs/pinia #853 · read the original issue
This issue might be a duplicate of https://github.com/posva/pinia/issues/724 I'm trying to install Pinia via npm but get a > ERESOLVE unable to resolve dependency tree error. ### Reproduction - OS: Win10 and Pop!_OS 21.04 - Node version: v16.13.0 - npm version: 8.1.0 - Vue CLI version: 4.5.15 - Vue version: 3.0.0 The project setup on Win10:  I created a temporary repository showing the inial commit after creating the project with the Vue CLI https://github.com/matthiashermsen/temp-pinia ### Steps to reproduce the behavior 1. Clone the repository 2. Run `npm install` 3. Run `npm install pinia` 4. You should get an error ### Expected behavior It should install the package without errors. ### Actual behavior This is the terminal error on Win10 ``` npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: repo@0.0.0-development npm ERR! Found: vue@3.2.22 npm ERR! node_modules/vue npm ERR! peerOptional vue@"^2 || ^3.0.0-0" from @vue/babel-preset-app@4.5.15 npm ERR! node_modules/@vue/babel-preset-app npm ERR! @vue/babel-preset-app@"^4.5.15" from @vue/cli-plugin-babel@4.5.15 npm ERR! node_modules/@vue/cli-plugin-babel npm ERR! dev @vue/cli-plugin-babel@"~4.5.0" from the root project npm ERR! peer vue@"3.2.22" from @vue/server-renderer@3.2.22 npm ERR! node_modules/@vue/server-renderer npm ERR! @vue/server-renderer@"3.2.22" from vue@3.2.22 npm ERR! 5 more (@vue/test-utils, primevue, vue-jest, vue-router, the root project) npm ERR! npm ERR! Could not resolve dependency: npm ERR! pinia@"*" from the root project npm ERR! npm ERR! Conflicting peer dependency: vue@3.2.23 npm ERR! node_modules/vue npm ERR! peer vue@">= 2.5 < 3" from @vue/composition-api@1.4.0 npm ERR! node_modules/@vue/composition-api npm ERR! peerOptional @vue/composition-api@"^1.4.0" from pinia@2.0.4 npm ERR! node_modules/pinia npm ERR! pinia@"*" 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! See C:\Users\me\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\me\AppData\Local\npm-cache\_logs\2021-11-26T09_39_36_434Z-debug.log ``` and this is the npm log file ``` 0 verbose cli [ 0 verbose cli 'C:\\Program Files\\nodejs\\node.exe', 0 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 0 verbose cli 'install', 0 verbose cli 'pinia' 0 verbose cli ] 1 info using npm@8.1.0 2 info using node@v16.13.0 3 timing npm:load:whichnode Completed in 0ms 4 timing config:load:defaults Completed in 1ms 5 t
04 / LABELS
Labels from the report text only; not yet run
misspecificationLabel rules and the text that matched
[
{
"category": "misspecification",
"rule": "signature.unresolvable_declared_requirement",
"source": "failure_signature",
"excerpt": "> ERESOLVE unable to resolve dependency tree"
}
]Issue concerns downstream Vue reproduction repository, not installation of the Pinia development tree.
Legacy reproduction is generic install-only; match the actual issue failure before admission.