Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants