我尝试使用npm i angular-dual-listbox --save命令,但得到一堆错误,指出版本不匹配,尽管我有8.2.14版本。参考文章:npmjs。错误日志如下:
C:\GUNEET KAUR\PROJ_2.0\cpd_repository\ANGULAR_CODE_BASE>npm i angular-dual-listbox --save
npm WARN @ng-bootstrap/ng-bootstrap@1.0.0-beta.6 requires a peer of @angular/core@^4.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ng-bootstrap/ng-bootstrap@1.0.0-beta.6 requires a peer of @angular/common@^4.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN @ng-bootstrap/ng-bootstrap@1.0.0-beta.6 requires a peer of @angular/forms@^4.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN angular-datatables@4.4.1 requires a peer of @angular/common@~4.4.6 but none is installed. You must install peer dependencies yourself.
npm WARN angular-datatables@4.4.1 requires a peer of @angular/compiler@~4.4.6 but none is installed. You must install peer dependencies yourself.npm WARN angular-datatables@4.4.1 requires a peer of @angular/core@~4.4.6 but none is installed. You must install peer dependencies yourself.
npm WARN angular-datatables@4.4.1 requires a peer of @angular/platform-browser@~4.4.6 but none is installed. You must install peer dependencies yourself.
npm WARN angular-datatables@4.4.1 requires a peer of @angular/platform-browser-dynamic@~4.4.6 but none is installed. You must install peer dependencies yourself.
npm WARN angular-datatables@4.4.1 requires a peer of core-js@~2.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN angular-datatables@4.4.1 requires a peer of rxjs@~5.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN angular-datatables@4.4.1 requires a peer of zone.js@~0.8.16 but none is installed. You must install peer dependencies yourself.
npm WARN angular-user-idle@2.2.4 requires a peer of @angular/common@^6.0.0 || ^10.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN angular-user-idle@2.2.4 requires a peer of @angular/core@^6.0.0 || ^10.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.0.0-beta.2 requires a peer of popper.js@^1.12.3 but none is installed. You must install peer dependencies yourself.
npm WARN d3-ng2-service@1.23.3 requires a peer of @angular/core@^5.0 || ^4.0 || ^2.0 but none is installed. You must install peer dependencies yourself.
npm WARN ng2-popover@0.0.14 requires a peer of @angular/core@^2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-daterangepicker@2.1.0 requires a peer of @angular/common@^6.0.0-rc.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-daterangepicker@2.1.0 requires a peer of @angular/core@^6.0.0-rc.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-daterangepicker@2.1.0 requires a peer of bulma@^0.7.1 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-daterangepicker@2.1.0 requires a peer of date-fns@^1.29.0 but none is installed. You must install peer dependencies yourself.
npm WARN angular-dual-listbox@6.0.0 requires a peer of @angular/common@>=10.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN angular-dual-listbox@6.0.0 requires a peer of @angular/core@>=10.0.0 but none is installed. You must install peer dependencies yourself.
npm ERR! code E401
npm ERR! Unable to authenticate, need: Basic realm="Artifactory Realm"发布于 2021-04-30 19:08:18
尝试安装与您的angular版本兼容的4.x版本
https://stackoverflow.com/questions/67332644
复制相似问题