gpt4 book ai didi

angular - [ng更新]:错误-无法从工作区根目录解析 “@angular-devkit/schematics”包

转载 作者:行者123 更新时间:2023-12-03 07:32:01 32 4
gpt4 key购买 nike

ng update

The "@angular-devkit/schematics" package cannot be resolved from the workspace root directory. This may be due to an unsupported node modules structure. Please remove both the "node_modules" directory and the package lock file; and then reinstall. If this does not correct the problem, please temporarily install the "@angular-devkit/schematics" package within the workspace. It can be removed once the update is complete.

最佳答案

我有这个问题

首先,我运行此命令以查看程序包的结构

npm ls @angular-devkit/schematics



它回来了...

Mms@0.0.0 C:\Users\wgrant\source\repos\WD\MMS\Mms\ClientApp

`-- (empty)



因为它是空的,所以我运行了以下命令(如果您的不为空,请尝试更新而不是安装)

npm install @angular-devkit/schematics



然后,“ng update”成功运行

关于angular - [ng更新]:错误-无法从工作区根目录解析 “@angular-devkit/schematics”包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60546860/

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