当您在角项目上运行ng update时,它会根据需要自动更改代码基。如何对TypeScript角库进行同样的操作?
如果我在我的库上运行ng update,它只会抛出以下内容,并且不会升级任何代码:
√ Packages successfully installed.
Using package manager: npm
Collecting installed dependencies...
Found 54 dependencies.
We analyzed your package.json, there are some packages to update:
Name Version Command to update
--------------------------------------------------------------------------------
@angular/cdk 14.0.3 -> 14.1.0 ng update @angular/cdk
@angular/cli 14.0.3 -> 14.1.0 ng update @angular/cli
@angular/core 14.0.3 -> 14.1.0 ng update @angular/core
@angular/material 14.0.3 -> 14.1.0 ng update @angular/material
ng-zorro-antd 13.2.1 -> 13.4.0 ng update ng-zorro-antd
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.发布于 2022-07-29 13:34:18
你可以的
https://stackoverflow.com/questions/73167533
复制相似问题