primeng:安装 Angular 16.2.0 版本

问题描述 投票:0回答:1

我在本地安装了 Angular 16.0.0:

npx -p @angular/[email protected] ng new Tester --no-standalone --routing

然后我尝试安装 primeng:

npm install --save primeng 

我预计会安装适合 Angular 16.0.0 的版本。 我得到:

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/common
npm ERR!   @angular/common@"^16.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^17.0.0" from [email protected]
npm ERR! node_modules/primeng
npm ERR!   primeng@"*" 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!
npm ERR! For a full report see:
npm ERR! C:\Users\990598\AppData\Local\npm-cache\_logs\2023-11-27T17_26_27_248Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\990598\AppData\Local\npm-cache\_logs\2023-11-27T17_26_27_248Z-debug-0.log

你能告诉我我做错了什么吗?

谢谢你, 兹维卡

angular primeng
1个回答
0
投票

Angular v17 支持即将落地

您可以使用

npm i [email protected]

尝试最新的测试版
© www.soinside.com 2019 - 2024. All rights reserved.