Angular 9 ng new myapp gives error The Schematic workflow failed Angular 9 ng new myapp gives error The Schematic workflow failed angular angular

Angular 9 ng new myapp gives error The Schematic workflow failed


First ,verify your NPM cached memory

npm cache verify

then try :

npm cache clean --forcenpm install –g @angular/cli@latest ng new <YourProjectName>

If the problem persists, then try the following

npm cache clean --forcenpm updateng new <YourProjectName>
NOTE
As @0210vidit said in the comment below:

do not use dash(-) or (.) in naming


Try to clean the npm cache using:

npm cache clean --force

then should it works now,

ng new my-app


I had similar issue and installing yarn or clearing cache didn't help.I removed '-' from my app name and it worked

Error :

ng new first-app

Solved:

ng new firstapp

Hope it helps.