Question
The following error is reported when NPM install vuex — save is used on the command line
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/vue
npm ERR! vue@"^2.5.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^3.0.2" from [email protected]
npm ERR! node_modules/vuex
npm ERR! vuex@"*" 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\admin\AppData\Local\npm-cache\eresolve-report.txt for a full repor
t.
This problem occurs because the version of NPM is too high
Solution:
Install the specified version of vuex
view the installable version of vuex
C:\Users\admin>npm view vuex versions --json
[
"0.1.0",
"0.2.0",
"0.3.0",
"0.4.0",
"0.4.1",
"0.4.2",
"0.5.0",
"0.5.1",
"0.6.1",
"0.6.2",
"0.6.3",
"0.7.0",
"0.7.1",
"0.8.0",
"0.8.1",
"0.8.2",
"1.0.0-rc",
"1.0.0-rc.2",
"1.0.0",
"1.0.1",
"2.0.0-rc.1",
"2.0.0-rc.3",
"2.0.0-rc.4",
"2.0.0-rc.5",
"2.0.0-rc.6",
"2.0.0",
"2.1.0",
"2.1.1",
"2.1.2",
"2.1.3",
"2.2.0",
"2.2.1",
"2.3.0",
"2.3.1",
"2.4.0",
"2.4.1",
"2.5.0",
"3.0.0",
"3.0.1",
"3.1.0",
"3.1.1",
"3.1.2",
"3.1.3",
"3.2.0",
"3.3.0",
"3.4.0",
"3.5.0",
"3.5.1",
"3.6.0",
"3.6.1",
"3.6.2",
"4.0.0-alpha.1",
"4.0.0-beta.1",
"4.0.0-beta.2",
"4.0.0-beta.3",
"4.0.0-beta.4",
"4.0.0-rc.1",
"4.0.0-rc.2",
"4.0.0",
"4.0.1",
"4.0.2"
]
Install the specified version of vuex
npm install [email protected] --save
Read More:
- [Solved] Package Install Error: npm ERR code ERR_SOCKET_TIMEOUT npm ERR
- [Solved] NPM err! Cannot read property ‘parent’ of null npm ERR! A complete log of this run can be found in: npm ERR!
- [Solved] Vue3 npm ERR code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC
- [Solved] npm install Error: error code ERR_SOCKET_TIMEOUT
- npm ERR code ELIFECYCLE [How to Solve]
- npm install error code EINTEGRITY sha1 [How to Solve]
- [Solved] To install it, you can run: npm install –save core-js/modules/es.error.cause.js
- VUE: How to Solve NPM Always Install Error
- After installing NPM, NRM LS reports an error throw new err_INVALID_ARG_TYPE(name, ‘string‘, value)
- Vue Error: renren-fast-vue execute npm install Error [How to Solve]
- [Solved] Npm install Error: verbose stack Error: unable to resolve dependency tree
- [Solved] VUE npm install Error: Module build failed: Error: ENOENT: no such file or directory, scandir
- [Solved] Vue create error: ERROR: command failed: npm install –loglevel error
- [Solved] Vuex state Error: [vuex] do not mutate vuex store state outside mutation handlers.
- [Solved] Vue create Create Project Error: command failed: npm install –loglevel error
- How to Solve NPM installation -g @view/client Error
- [Solved] npm run start Error: Exit status 3221225477
- [Solved] Node.js v17 npm run dev Error: opensslErrorStack
- npm run dev Error: opensslErrorStack: [ ‘error:03000086:digital envelope routines::initialization error‘ ]
- vue-elemnt-admin npm run dev [How to Solve]