首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在升级时像整个项目一样自动更新角库?

如何在升级时像整个项目一样自动更新角库?
EN

Stack Overflow用户
提问于 2022-07-29 13:28:34
回答 1查看 19关注 0票数 0

当您在角项目上运行ng update时,它会根据需要自动更改代码基。如何对TypeScript角库进行同样的操作?

如果我在我的库上运行ng update,它只会抛出以下内容,并且不会升级任何代码:

代码语言:javascript
复制
√ 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.
EN

回答 1

Stack Overflow用户

发布于 2022-07-29 13:34:18

你可以的

  • 更新package.json文件中的依赖项版本
  • 运行npm安装
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73167533

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档