gpt4 book ai didi

angular - 包 '@angular/cli' 不是依赖项

转载 作者:行者123 更新时间:2023-12-04 11:33:11 24 4
gpt4 key购买 nike

当我尝试运行命令时出现以下错误
ng update @angular/cli @angular/core --allow-dirty

Repository is not clean.  Update changes will be mixed with pre-existing changes.
Using package manager: 'npm'
Collecting installed dependencies...
Found 28 dependencies.
Package '@angular/cli' is not a dependency.

最佳答案

首先将所有更改提交到 repo,然后尝试以下命令。

npm i -g @angular/cli@8.0.0


ng update --all --force

请阅读 github 上的 this 问题

关于angular - 包 '@angular/cli' 不是依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57751607/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com