Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Can't compile after trying update to Angular9

davout free asked 4 years ago


I have completely messed up my project after following your Angular 9 upgrade instructions

When I try to run ....

ng update

... I get the following error

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.

The 'node_modules' folder has already been deleted and I can't find a file called 'package lock'

Help!


Konrad Stępień staff answered 4 years ago


If you don't have a node_modules folder and package-lock.json file in your root folder, please run npm i command in your project.

If you still have the problem, please run npm i @angular-devkit/schematics, and after the update project, you can remove @angular-devkit/schematics from your package.json file, and then again delete node_modules folder and package-lock.json file and run npm i.

Please try my solution and for more problems tell me about it.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.10.1
  • Device: PC
  • Browser: Chrome
  • OS: Windows10
  • Provided sample code: No
  • Provided link: No