Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
916 views
in Technique[技术] by (71.8m points)

angular - the schematic workflow failed

Whenever I tried using ng new --collection=@nativescript/schematics --name=my-app --shared OR Any of the other command line commands to generate a project in which I can develop PWA app (Web + Mobile) it also ends with error as follows - the schematic workflow failed. I have installed latest versions of NPM Angular cli Nativescript cli nativescript/schematics I am doing this on windows 8 Anybody know what the problem is?

Have searched online but have failed to get a solution. Thanks.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
  1. Check Node and Npm versions using the below command.

    node -v 
    
    npm -v
    
  2. if npm version >= 7.As per online info, the Angular team recommends using npm 6 for now.

    npm install -g npm@6 
    
  3. clean npm cache

    npm cache clean --force
    
  4. install latest NG CLI

    npm install -g @angular/cli@latest
    

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...