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.
What is the expected behavior?
it should update the dependency I want to update through ng update
Which version of Angular and Material, and which browser and OS does this issue affect?
Angular 9 and material too version 9 as a dependency and windows os
Did this work in previous versions of Angular / Material?
No
Bug Report
ERROR
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.
What is the expected behavior?
it should update the dependency I want to update through ng update
Which version of Angular and Material, and which browser and OS does this issue affect?
Angular 9 and material too version 9 as a dependency and windows os
Did this work in previous versions of Angular / Material? No