Angular 新建项目错误:The Schematic workflow failed. See above

记录踩坑填坑,有不正之处请指出

错误

image-20210520174446837

解决方法1

npm config set registry https://registry.npmjs.org/

也可使用淘宝镜像

npm config set registry https://registry.npm.taobao.org

配置后可通过下面方式来验证是否成功

npm config get registry / npm info express

解决方法2

  1. 卸载angular/cli

    npm uninstall -f -g @angular/cli
    
  2. 强制清除缓存

    npm cache clean --force
    
  3. 重新安装cli

    npm install -g @angular/cli@latest
    

参考地址

stackoverflow1
stackoverflow2

posted @ 2021-05-21 14:55  JontyWang  阅读(611)  评论(0编辑  收藏  举报