Je veux installer le package highcharts dans angula pp mais angular cli me donne une erreur et comme indiqué ci-dessous:

npm WARN @angular/flex-layout@11.0.0-beta.33 requires a peer of @angular/cdk@^11.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/flex-layout@11.0.0-beta.33 requires a peer of @angular/core@>=11.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/flex-layout@11.0.0-beta.33 requires a peer of @angular/common@>=11.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/flex-layout@11.0.0-beta.33 requires a peer of @angular/platform-browser@>=11.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material-moment-adapter@11.0.2 requires a peer of @angular/material@11.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material-moment-adapter@11.0.2 requires a peer of @angular/core@^11.0.0 || ^12.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN ng-validate-equal@1.0.4 requires a peer of @angular/common@^9.0.7 but none is installed. You must install peer dependencies yourself.
npm WARN ng-validate-equal@1.0.4 requires a peer of @angular/core@^9.0.7 but none is installed. You must install peer dependencies yourself.
npm WARN ng-validate-equal@1.0.4 requires a peer of tslib@^1.10.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path D:\FarooqDropbox\Dropbox\FarooqFolder\BugSmashClientApp\node_modules\highcharts
npm ERR! dest D:\FarooqDropbox\Dropbox\FarooqFolder\BugSmashClientApp\node_modules\.highcharts.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'D:\FarooqDropbox\Dropbox\FarooqFolder\BugSmashClientApp\node_modules\highcharts' -> 'D:\FarooqDropbox\Dropbox\FarooqFolder\BugSmashClientApp\node_modules\.highcharts.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\biolab\AppData\Roaming\npm-cache\_logs\2021-02-08T13_43_50_089Z-debug.log

S'il vous plaît, si quelqu'un sait, dites-moi la solution de ce problème.

0
Farooq Butt 8 févr. 2021 à 16:55

1 réponse

Meilleure réponse

Dans ce problème, ce que j'avais fait, c'est que je vais simplement au-dessous du fichier:

package.json

Et écrivez le nom du package que je souhaite installer dans mon application angulaire, puis le code Visual Studio me montre automatiquement des erreurs et des suggestions pour l'installer Je clique simplement sur ces suggestions pour installer tout package que je n'ai pas pu exécuter à l'aide de la commande CLI ANGULAIRE.

0
Farooq Butt 9 mars 2021 à 13:22