Angular 9 et Peer dependencies

4 views
Skip to first unread message

Raphael Nicolle

unread,
Mar 10, 2020, 3:07:01 AM3/10/20
to FrAngular - AngularJS en français
Bonjour à tous,

Je viens d'installer la version 9 d'Angular et je voudrais installer également material. Du coup je commence, par installer dk mais il y a un hic !! Il me sort un problème de peer dependencies. Du coup, ni une ni deux, j'ai installer le package npm "install-peerdeps", et je recommence. Je tombe sur un nouveau probléme :

PS C:\nodejs\Angular\Angular9\project> install-peerdeps @angular/cdk
install-peerdeps v2.0.1
Installing peerdeps for @angular/cdk@latest.
npm install @angular/c...@9.1.0 @angular/co...@10.0.0 @angular/com...@10.0.0 tslib@^1.9.0 --save --registry https://registry.npmjs.com

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @angular/com...@10.0.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\raphael.nicolle\AppData\Roaming\npm-cache\_logs\2020-03-04T07_17_19_964Z-debug.log
ERR The install process exited with error code 1.
En regardant, sur le site npm, je me rend compte que les versions 10 de core et common n'existe pas. Quelqu'un aurait une idée, et/ou une procédure pour installer angular/material en version 9 de façon propre (càd sans problème de dépendance) ?


Voici ma configuration : 

PS C:\nodejs\Angular\Angular9\project> node -v
v10.16.3
PS C:\nodejs\Angular\Angular9\project> npm list -g -depth=0
C:\Users\-\AppData\Roaming\npm
+-- @angular/c...@9.0.4
+-- @oracle/ojet...@8.1.0
+-- express-...@4.16.1
+-- install-...@2.0.1
+-- nod...@1.19.3
`-- n...@6.14.1

PS C:\nodejs\Angular\Angular9\project>

Merci beaucoup de m'avoir lu, je vous remercie d'avance pour votre aide.

Raphaël
Reply all
Reply to author
Forward
0 new messages