Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Unable to install this package using angular cli #1498

Closed
Ramees-Raja opened this issue Jan 18, 2021 · 5 comments
Closed

Unable to install this package using angular cli #1498

Ramees-Raja opened this issue Jan 18, 2021 · 5 comments

Comments

@Ramees-Raja
Copy link

When I tried to install using cli command "ng add angular-datatables"

It showing error "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."

Environment


- node version: 14.15.4
- angular version:10.2.4
- angular-cli version:10.2.1
@hope-himalaya-ahuja
Copy link

hope-himalaya-ahuja commented Jan 20, 2021

Facing the exact same issue running Angular 11 CLI with Angular 11 App with node 12.17

@shanmukhateja
Copy link
Collaborator

Hi, the library's versioning is linked to major version of Angular. Please try:

Angular 10:

ng add [email protected]

Angular 11:

ng add [email protected]

For more versions, take a look at the Releases page.

@JamesonNetworks
Copy link

Hi, the library's versioning is linked to major version of Angular. Please try:

Angular 10:

ng add [email protected]

Angular 11:

ng add [email protected]

For more versions, take a look at the Releases page.

Thanks for the info! I also just ran into this issue. You may want to add this information to the install instructions on http://l-lin.github.io/angular-datatables/#/getting-started . I've opened a PR for this at #1510

@shanmukhateja
Copy link
Collaborator

Hi, this issue has been fixed in latest release of v10. I'll also make releases for Angular v9 and v11 projects soon. Please try ng add angular-datatables on a new Angular 10 project and let me know if it persists :)

@JamesonNetworks
Copy link

Hi, this issue has been fixed in latest release of v10. I'll also make releases for Angular v9 and v11 projects soon. Please try ng add angular-datatables on a new Angular 10 project and let me know if it persists :)

Awesome! Will test this out tonight. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants