Postingan lainnya
Buku Ini Koding!
Baru!
Buku ini akan jadi teman perjalanan kamu belajar sampai dapat kerjaan di dunia programming!
Npm install error
Halo saya mau bertanya kenapa setiap saya install apapun yang awalnya npm selalu ada warning seperti ini
npm WARN @angular/animations@8.2.2 requires a peer of @angular/core@8.2.2 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/cdk@8.1.2 requires a peer of @angular/core@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/cdk@8.1.2 requires a peer of @angular/common@^8.0.0 || ^9.0.0-0 but none is installed. You must install
peer dependencies yourself.
npm WARN @angular/common@7.2.15 requires a peer of @angular/core@7.2.15 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/forms@7.2.15 requires a peer of @angular/core@7.2.15 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/http@7.2.15 requires a peer of @angular/core@7.2.15 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@8.1.2 requires a peer of @angular/core@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@8.1.2 requires a peer of @angular/common@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@8.1.2 requires a peer of @angular/forms@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/platform-browser@7.2.15 requires a peer of @angular/core@7.2.15 but none is installed. You must install
peer dependencies yourself.
npm WARN @angular/platform-browser-dynamic@7.2.15 requires a peer of @angular/core@7.2.15 but none is installed. You must
install peer dependencies yourself.
npm WARN @angular/router@7.2.15 requires a peer of @angular/core@7.2.15 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic/angular@4.6.0 requires a peer of @angular/core@^7.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN ng-circle-progress@1.0.0 requires a peer of rxjs@^5.1.0 but none is installed. You must install peer dependencies yourself.
audited 55072 packages in 8.525s
found 34 high severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
2 Jawaban:
melihat jawaban dari stackoverflow masalah <a href='https://stackoverflow.com/questions/48626005/how-do-i-deal-with-installing-peer-dependencies-in-angular-cli/48627003'>menginstall npm di angular</a> , kamu perlu mengupdate versi angularnya di package.json lalu jalankan "npm install" lagi. Versinya sesuiakn degnan yang disarankan di atas
<a href='https://sekolahkoding.com/forum/npm-err-code-eintegrity-npm-err-code-elifecycle-1558054384'>Cek disini</a>