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

4.7k Views Asked by At

I'm new to Angular.

After executing ng add ngx-spinner, I encountered this error:

The error (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.

How can I solve this problem? (How can I add the module manually?)

ng version

schematics

2

There are 2 best solutions below

0
On BEST ANSWER

I uninstalled spinner with

npm uninstall ngx-spinner

and reinstalled with

npm install ngx-spinner --force

Now that's work well.

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

0
On

I had another version of '@angular/common', and I had to downgrade to a lower version and after to run the npm install ngx-spinner