You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i try to install the latest version of the package i get this error:
ng add apollo-angular
i Using package manager: npm
‼ Unable to find compatible package. Using 'latest' tag.
‼ Package has unmet peer dependencies. Adding the package may not succeed.
The package [email protected] will be installed and executed.
Would you like to proceed? Yes
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/core
npm ERR! @angular/core@"^14.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/core@"^12.0.0 || ^13.0.0" from [email protected]
npm ERR! node_modules/apollo-angular
npm ERR! apollo-angular@"3.0.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! See C:\Users\Mahdi Pishguy\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\Mahdi Pishguy\AppData\Local\npm-cache\_logs\2022-07-13T18_42_23_011Z-debug-0.log
× Packages installation failed, see above.
--force and --legacy-peer-deps couldn't resolve my problem and i can't install
log:
0 verbose cli C:\Program Files\nodejs\node.exe C:\Users\Mahdi Pishguy\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:C:\Users\Mahdi Pishguy\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:D:\develop\js-projects\limunad-shop\frontend\.npmrc Completed in 1ms
10 timing config:load:project Completed in 5ms
11 timing config:load:file:C:\Users\Mahdi Pishguy\.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:C:\Users\Mahdi Pishguy\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 14ms
19 timing npm:load:configload Completed in 15ms
20 timing npm:load:mkdirpcache Completed in 2ms
21 timing npm:load:mkdirplogs Completed in 1ms
22 verbose title npm install [email protected]
23 verbose argv "install" "[email protected]"
24 timing npm:load:setTitle Completed in 1ms
25 timing config:load:flatten Completed in 3ms
26 timing npm:load:display Completed in 3ms
27 verbose logfile logs-max:10 dir:C:\Users\Mahdi Pishguy\AppData\Local\npm-cache\_logs
28 verbose logfile C:\Users\Mahdi Pishguy\AppData\Local\npm-cache\_logs\2022-07-13T18_48_10_782Z-debug-0.log
29 timing npm:load:logFile Completed in 6ms
30 timing npm:load:timers Completed in 0ms
31 timing npm:load:configScope Completed in 0ms
32 timing npm:load Completed in 29ms
33 timing arborist:ctor Completed in 1ms
34 silly logfile start cleaning logs, removing 4 files
35 silly logfile done cleaning log files
36 timing idealTree:init Completed in 617ms
37 timing idealTree:userRequests Completed in 5ms
38 silly idealTree buildDeps
39 silly fetch manifest [email protected]
40 verbose shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules
41 http fetch GET 200 https://registry.npmjs.org/apollo-angular 86ms (cache hit)
42 silly fetch manifest @angular/core@^14.0.0
43 http fetch GET 200 https://registry.npmjs.org/@angular%2fcore 571ms (cache hit)
44 silly fetch manifest @angular/core@^12.0.0 || ^13.0.0
45 silly fetch manifest rxjs@~7.5.0
46 http fetch GET 200 https://registry.npmjs.org/rxjs 9ms (cache hit)
47 silly fetch manifest zone.js@~0.11.4
48 http fetch GET 200 https://registry.npmjs.org/zone.js 7ms (cache hit)
49 timing idealTree Completed in 1335ms
50 timing command:install Completed in 1342ms
51 verbose stack Error: unable to resolve dependency tree
51 verbose stack at Arborist.[failPeerConflict] (C:\Users\Mahdi Pishguy\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1428:25)
51 verbose stack at Arborist.[loadPeerSet] (C:\Users\Mahdi Pishguy\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:1394:34)
51 verbose stack at async Arborist.[buildDepStep] (C:\Users\Mahdi Pishguy\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:976:11)
51 verbose stack at async Arborist.buildIdealTree (C:\Users\Mahdi Pishguy\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:218:7)
51 verbose stack at async Promise.all (index 1)
51 verbose stack at async Arborist.reify (C:\Users\Mahdi Pishguy\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:153:5)
51 verbose stack at async Install.exec (C:\Users\Mahdi Pishguy\AppData\Roaming\npm\node_modules\npm\lib\commands\install.js:145:5)
51 verbose stack at async module.exports (C:\Users\Mahdi Pishguy\AppData\Roaming\npm\node_modules\npm\lib\cli.js:78:5)
52 verbose cwd D:\develop\js-projects\limunad-shop\frontend\src\app\front\modules\teachers
53 verbose Windows_NT 10.0.22000
54 verbose node v16.15.0
55 verbose npm v8.13.1
56 error code ERESOLVE
57 error ERESOLVE unable to resolve dependency tree
58 error
59 error While resolving: [email protected]
59 error Found: @angular/[email protected]
59 error node_modules/@angular/core
59 error @angular/core@"^14.0.0" from the root project
59 error
59 error Could not resolve dependency:
59 error peer @angular/core@"^12.0.0 || ^13.0.0" from [email protected]
59 error node_modules/apollo-angular
59 error apollo-angular@"3.0.1" from the root project
59 error
59 error Fix the upstream dependency conflict, or retry
59 error this command with --force, or --legacy-peer-deps
59 error to accept an incorrect (and potentially broken) dependency resolution.
59 error
59 error See C:\Users\Mahdi Pishguy\AppData\Local\npm-cache\eresolve-report.txt for a full report.
60 verbose exit 1
61 timing npm Completed in 1473ms
62 verbose unfinished npm timer reify 1657738090909
63 verbose unfinished npm timer reify:loadTrees 1657738090913
64 verbose unfinished npm timer idealTree:buildDeps 1657738091536
65 verbose unfinished npm timer idealTree:#root 1657738091537
66 verbose code 1
67 error A complete log of this run can be found in:
67 error C:\Users\Mahdi Pishguy\AppData\Local\npm-cache\_logs\2022-07-13T18_48_10_782Z-debug-0.log
The text was updated successfully, but these errors were encountered:
when i try to install the latest version of the package i get this error:
--force
and--legacy-peer-deps
couldn't resolve my problem and i can't installlog:
The text was updated successfully, but these errors were encountered: