Closed
Description
🐞 Bug report
Command (mark with an x
)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Is this a regression?
No.
Description
There is no way to update to 14.0.0-rc.2
with --next
command argument.
🔬 Minimal Reproduction
-
Check
ng version
ng version
Angular CLI: 13.3.7 Node: 16.15.0 Package Manager: npm 8.5.5 OS: win32 x64 Angular: ... Package Version ------------------------------------------------------ @angular-devkit/architect 0.1303.7 (cli-only) @angular-devkit/core 13.3.7 (cli-only) @angular-devkit/schematics 13.3.7 (cli-only) @schematics/angular 13.3.7 (cli-only)
-
Create project
ng new demo1 --defaults cd demo1
-
Run
ng update --next
ng update --next
The installed Angular CLI version is outdated. Installing a temporary Angular CLI versioned 14.0.0-rc.2 to perform the update. ✔ Package successfully installed. Using package manager: npm Collecting installed dependencies... Found 23 dependencies. We analyzed your package.json, there are some packages to update: Name Version Command to update -------------------------------------------------------------------------------- @angular/cli 13.3.7 -> 14.0.0-rc.2 ng update @angular/cli --next @angular/core 13.3.10 -> 14.0.0-rc.2 ng update @angular/core --next There might be additional packages which don't provide 'ng update' capabilities that are outdated. You can update the additional packages by running the update command of your package manager.
-
Run
ng update @angular/cli --next
ng update @angular/cli --next
The installed Angular CLI version is outdated. Installing a temporary Angular CLI versioned 14.0.0-rc.2 to perform the update. ✔ Package successfully installed. Using package manager: npm Collecting installed dependencies... Found 23 dependencies. Fetching dependency metadata from registry... Updating package.json with dependency @angular-devkit/build-angular @ "14.0.0-rc.2" (was "13.3.7")... Updating package.json with dependency @angular/cli @ "14.0.0-rc.2" (was "13.3.7")... Updating package.json with dependency @angular/compiler-cli @ "14.0.0-rc.2" (was "13.3.10")... Updating package.json with dependency @angular/animations @ "14.0.0-rc.2" (was "13.3.10")... Updating package.json with dependency @angular/common @ "14.0.0-rc.2" (was "13.3.10")... Updating package.json with dependency @angular/compiler @ "14.0.0-rc.2" (was "13.3.10")... Updating package.json with dependency @angular/core @ "14.0.0-rc.2" (was "13.3.10")... Updating package.json with dependency @angular/forms @ "14.0.0-rc.2" (was "13.3.10")... Updating package.json with dependency @angular/platform-browser @ "14.0.0-rc.2" (was "13.3.10")... Updating package.json with dependency @angular/platform-browser-dynamic @ "14.0.0-rc.2" (was "13.3.10")... Updating package.json with dependency @angular/router @ "14.0.0-rc.2" (was "13.3.10")... UPDATE package.json (1122 bytes) npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: demo1@0.0.0 npm ERR! Found: @angular-devkit/build-angular@13.3.7 npm ERR! node_modules/@angular-devkit/build-angular npm ERR! dev @angular-devkit/build-angular@"~14.0.0-rc.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! dev @angular-devkit/build-angular@"~14.0.0-rc.2" from the root project npm ERR! npm ERR! Conflicting peer dependency: @angular/compiler-cli@14.0.0-rc.2 npm ERR! node_modules/@angular/compiler-cli npm ERR! peer @angular/compiler-cli@"^14.0.0 || ^14.0.0-rc" from @angular-devkit/build-angular@14.0.0-rc.2 npm ERR! node_modules/@angular-devkit/build-angular npm ERR! dev @angular-devkit/build-angular@"~14.0.0-rc.2" 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\User\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\User\AppData\Local\npm-cache\_logs\2022-05-27T04_30_34_734Z-debug-0.log ✖ Packages installation failed, see above.
Here is the complete log:
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 '--quiet', 0 verbose cli 'install' 0 verbose cli ] 1 info using npm@8.5.5 2 info using node@v16.15.0 3 timing npm:load:whichnode Completed in 1ms 4 timing config:load:defaults Completed in 1ms 5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 2ms 6 timing config:load:builtin Completed in 3ms 7 timing config:load:cli Completed in 2ms 8 timing config:load:env Completed in 0ms 9 timing config:load:file:G:\Projects\demo1\.npmrc Completed in 0ms 10 timing config:load:project Completed in 4ms 11 timing config:load:file:C:\Users\User\.npmrc Completed in 1ms 12 timing config:load:user Completed in 1ms 13 timing config:load:file:C:\Users\User\AppData\Roaming\npm\etc\npmrc Completed in 1ms 14 timing config:load:global Completed in 1ms 15 timing config:load:validate Completed in 0ms 16 timing config:load:credentials Completed in 1ms 17 timing config:load:setEnvs Completed in 1ms 18 timing config:load Completed in 15ms 19 timing npm:load:configload Completed in 15ms 20 timing npm:load:setTitle Completed in 1ms 21 timing config:load:flatten Completed in 2ms 22 timing npm:load:display Completed in 3ms 23 verbose logfile C:\Users\User\AppData\Local\npm-cache\_logs\2022-05-27T04_30_34_734Z-debug-0.log 24 timing npm:load:logFile Completed in 7ms 25 timing npm:load:timers Completed in 1ms 26 timing npm:load:configScope Completed in 0ms 27 timing npm:load Completed in 28ms 28 timing arborist:ctor Completed in 0ms 29 silly logfile start cleaning logs, removing 4 files 30 timing idealTree:init Completed in 504ms 31 timing idealTree:userRequests Completed in 0ms 32 silly idealTree buildDeps 33 silly fetch manifest @angular/animations@~14.0.0-rc.2 34 http fetch GET 200 https://registry.npmjs.org/@angular%2fanimations 23ms (cache hit) 35 silly fetch manifest @angular/core@~14.0.0-rc.2 36 http fetch GET 200 https://registry.npmjs.org/@angular%2fcore 9ms (cache hit) 37 silly fetch manifest rxjs@~7.5.0 38 http fetch GET 200 https://registry.npmjs.org/rxjs 9ms (cache hit) 39 silly fetch manifest zone.js@~0.11.4 40 http fetch GET 200 https://registry.npmjs.org/zone.js 7ms (cache hit) 41 silly fetch manifest @angular/common@~14.0.0-rc.2 42 http fetch GET 200 https://registry.npmjs.org/@angular%2fcommon 8ms (cache hit) 43 silly fetch manifest @angular/compiler@~14.0.0-rc.2 44 http fetch GET 200 https://registry.npmjs.org/@angular%2fcompiler 7ms (cache hit) 45 silly fetch manifest @angular/forms@~14.0.0-rc.2 46 http fetch GET 200 https://registry.npmjs.org/@angular%2fforms 7ms (cache hit) 47 silly fetch manifest @angular/platform-browser@~14.0.0-rc.2 48 http fetch GET 200 https://registry.npmjs.org/@angular%2fplatform-browser 8ms (cache hit) 49 silly fetch manifest @angular/platform-browser-dynamic@~14.0.0-rc.2 50 http fetch GET 200 https://registry.npmjs.org/@angular%2fplatform-browser-dynamic 13ms (cache hit) 51 silly fetch manifest @angular/router@~14.0.0-rc.2 52 http fetch GET 200 https://registry.npmjs.org/@angular%2frouter 8ms (cache hit) 53 silly fetch manifest @angular-devkit/build-angular@~14.0.0-rc.2 54 http fetch GET 200 https://registry.npmjs.org/@angular-devkit%2fbuild-angular 9ms (cache hit) 55 silly fetch manifest @angular/compiler-cli@~14.0.0-rc.2 56 http fetch GET 200 https://registry.npmjs.org/@angular%2fcompiler-cli 8ms (cache hit) 57 silly fetch manifest typescript@~4.6.2 58 http fetch GET 200 https://registry.npmjs.org/typescript 19ms (cache hit) 59 silly fetch manifest @angular/localize@^14.0.0 || ^14.0.0-rc 60 http fetch GET 200 https://registry.npmjs.org/@angular%2flocalize 7ms (cache hit) 61 silly fetch manifest @angular/service-worker@^14.0.0 || ^14.0.0-rc 62 http fetch GET 200 https://registry.npmjs.org/@angular%2fservice-worker 7ms (cache hit) 63 silly fetch manifest karma@~6.3.0 64 http fetch GET 200 https://registry.npmjs.org/karma 10ms (cache hit) 65 silly fetch manifest ng-packagr@^14.0.0 || ^14.0.0-next 66 http fetch GET 200 https://registry.npmjs.org/ng-packagr 6ms (cache hit) 67 silly fetch manifest tslib@^2.3.0 68 http fetch GET 200 https://registry.npmjs.org/tslib 6ms (cache hit) 69 silly fetch manifest protractor@^7.0.0 70 http fetch GET 200 https://registry.npmjs.org/protractor 6ms (cache hit) 71 silly fetch manifest tailwindcss@^2.0.0 || ^3.0.0 72 http fetch GET 200 https://registry.npmjs.org/tailwindcss 9ms (cache hit) 73 silly fetch manifest @angular/cli@~14.0.0-rc.2 74 http fetch GET 200 https://registry.npmjs.org/@angular%2fcli 8ms (cache hit) 75 timing idealTree Completed in 935ms 76 timing command:install Completed in 942ms 77 verbose stack Error: could not resolve 77 verbose stack at PlaceDep.failPeerConflict (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:546:25) 77 verbose stack at PlaceDep.place (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:197:21) 77 verbose stack at new PlaceDep (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\place-dep.js:71:10) 77 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:964:31 77 verbose stack at Array.map (<anonymous>) 77 verbose stack at Arborist.[buildDepStep] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:964:8) 77 verbose stack at async Arborist.buildIdealTree (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\build-ideal-tree.js:216:7) 77 verbose stack at async Promise.all (index 1) 77 verbose stack at async Arborist.reify (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:153:5) 77 verbose stack at async Install.exec (C:\Program Files\nodejs\node_modules\npm\lib\commands\install.js:159:5) 78 verbose cwd G:\Projects\demo1 79 verbose Windows_NT 10.0.19043 80 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "--quiet" "install" 81 verbose node v16.15.0 82 verbose npm v8.5.5 83 error code ERESOLVE 84 error ERESOLVE could not resolve 85 error 86 error While resolving: demo1@0.0.0 86 error Found: @angular-devkit/build-angular@13.3.7 86 error node_modules/@angular-devkit/build-angular 86 error dev @angular-devkit/build-angular@"~14.0.0-rc.2" from the root project 86 error 86 error Could not resolve dependency: 86 error dev @angular-devkit/build-angular@"~14.0.0-rc.2" from the root project 86 error 86 error Conflicting peer dependency: @angular/compiler-cli@14.0.0-rc.2 86 error node_modules/@angular/compiler-cli 86 error peer @angular/compiler-cli@"^14.0.0 || ^14.0.0-rc" from @angular-devkit/build-angular@14.0.0-rc.2 86 error node_modules/@angular-devkit/build-angular 86 error dev @angular-devkit/build-angular@"~14.0.0-rc.2" from the root project 86 error 86 error Fix the upstream dependency conflict, or retry 86 error this command with --force, or --legacy-peer-deps 86 error to accept an incorrect (and potentially broken) dependency resolution. 86 error 86 error See C:\Users\User\AppData\Local\npm-cache\eresolve-report.txt for a full report. 87 verbose exit 1 88 timing npm Completed in 1364ms 89 verbose unfinished npm timer reify 1653625835150 90 verbose unfinished npm timer reify:loadTrees 1653625835154 91 verbose unfinished npm timer idealTree:buildDeps 1653625835660 92 verbose unfinished npm timer idealTree:#root 1653625835660 93 verbose code 1 94 error A complete log of this run can be found in: 94 error C:\Users\User\AppData\Local\npm-cache\_logs\2022-05-27T04_30_34_734Z-debug-0.log
🔥 Exception or Error
See Minimal Reproduction
.
🌍 Your Environment
Angular CLI: 13.3.7
Node: 16.15.0
Package Manager: npm 8.5.5
OS: win32 x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1303.7 (cli-only)
@angular-devkit/core 13.3.7 (cli-only)
@angular-devkit/schematics 13.3.7 (cli-only)
@schematics/angular 13.3.7 (cli-only)
Anything else relevant?
N/A
Metadata
Metadata
Assignees
Labels
No labels