M
M
mletov2018-04-30 15:30:11
Angular
mletov, 2018-04-30 15:30:11

Why does npm complain about dependencies that supposedly don't exist?

I'm trying to install ngx-bootstrap via npm.
I get these errors
[email protected] requires a peer of @angular/[email protected]>=4.3.0 || >5.0.0 but none was installed.
[email protected] requires a peer of @angular/[email protected]>=4.3.0 || >5.0.0 but none was installed.
[email protected] requires a peer of @angular/[email protected]>=4.3.0 || >5.0.0 but none was installed.

But I have everything set
to tsconfig.json

"@angular/animations": "^5.2.10",
    "@angular/common": "^5.2.10",
    "@angular/compiler": "^5.2.10",
    "@angular/compiler-cli": "^5.2.10",
    "@angular/core": "^5.2.10",
    "@angular/forms": "^5.2.10",
    "@angular/http": "^5.2.10",
    "@angular/platform-browser": "^5.2.10",
    "@angular/platform-browser-dynamic": "^5.2.10",
    "@angular/platform-server": "^5.2.10",
    "@angular/router": "^5.2.10",

Please tell me how to get rid of this?
And then I installed ngx-table, and it is without css, apparently, just because of ngx-bootstrap.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny, 2018-05-01
Maltsev @loqiue

This is not even an error, but a warning. As a rule, if the installed version of Angular is higher than the one indicated in the warning, then this can usually be ignored. But if it's lower, then it's probably better to upgrade.
Specifically, in this case, it most likely has nothing to do with the problem of styles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question