记录踩坑填坑,有不正之处请指出
npm config set registry https://registry.npmjs.org/
也可使用淘宝镜像
npm config set registry https://registry.npm.taobao.org
配置后可通过下面方式来验证是否成功
npm config get registry / npm info express
卸载angular/cli
npm uninstall -f -g @angular/cli
强制清除缓存
npm cache clean --force
重新安装cli
npm install -g @angular/cli@latest
Angular 新建项目错误:The Schematic workflow failed. See above
原文:https://www.cnblogs.com/JontyWang/p/14793823.html