ng add ngx-spinner :您尝试添加的包不支持原理图

ng add ngx-spinner : The package that you are trying to add does not support schematics

我是 Angular 的新手。

执行ng add ngx-spinner后,遇到了这个错误:

错误(ngx-spinner):

The package that you are trying to add does not support schematics. You can try using a different version of the package or contact the package author to add ng-add support.

我该如何解决这个问题? (如何手动添加模块?)

我用

卸载了微调器
npm uninstall ngx-spinner

并重新安装

npm install ngx-spinner --force

现在效果很好。

https://github.com/Napster2210/ngx-spinner/issues/163#issuecomment-768826528