简体   繁体   中英

Error: No matching version found for @angular/localize@~8.2.14 while installing 'ng add @ng-bootstrap/ng-bootstrap' in Angular application

I am installing ng add @ng-bootstrap/ng-bootstrap in my project to use popups in Angular application.

While installing from Visual Studio code terminal getting error

D:\path\ProcProject>ng add @ng-bootstrap/ng-bootstrap
Skipping installation: Package already installed
UPDATE package.json (1720 bytes)
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @angular/localize@~8.2.14.
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! notarget
npm ERR! notarget It was specified as a dependency of 'ProcProject'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\username\AppData\Roaming\npm-cache\_logs\2020-08-03T11_19_41_731Z-debug.log
Package install failed, see above.

D:\path\ProcProject>
D:\path\ProcProject>
D:\path\ProcProject>

This is my angular configuration

D:\path\ProcProject>ng --version

     _                      _                 ____ _     ___ 
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 8.3.29
Node: 12.18.1
OS: win32 x64
Angular: 8.2.14
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.803.23
@angular-devkit/build-angular     0.803.23
@angular-devkit/build-optimizer   0.803.23
@angular-devkit/build-webpack     0.803.23
@angular-devkit/core              8.3.23
@angular-devkit/schematics        8.3.29
@angular/cli                      8.3.29
@angular/google-maps              10.1.0
@angular/localize                 <error>
@ngtools/webpack                  8.3.23
@schematics/angular               8.3.29
@schematics/update                0.803.29
rxjs                              6.4.0
typescript                        3.5.3
webpack                           4.39.2

How can I fix this issue?

This issue fixed by running ng add @angular/localize and then ng add @ng-bootstrap/ng-bootstrap

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM