package.json 中 peerDependencies 部分
"peerDependencies": { "@angular/common": "17.x", "@angular/core": "17.x" }
更新为
"peerDependencies": { "@angular/common": "19.x", "@angular/core": "19.x" }
运行 npm i 命令并没有更新 package.lock.json
npm i
通过 npm audit fix 命令解决了
npm audit fix