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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM