After getting installed service (provider), cmd: ‘ionic g service Rest’, in ionic version 4 project. While executing the project I got the following error.
C:\Users\RASIK\myfirst>ionic serve --lab
> ng.cmd run app:serve --host=localhost --port=8100
[ng] This version of CLI is only compatible with Angular versions 0.0.0 || ^9.0.0-beta || >=9.0.0 <10.0.0,
[ng] but Angular version 10.0.4 was found instead.
[ng] Please visit the link below to find instructions on how to update Angular.
[ng] https://update.angular.io/
[ERROR] ng has unexpectedly closed (exit code 3).
The Ionic CLI will exit. Please check any output above for error details.
Solution:
Install the angular CLI in the project using the command.
npm install --save-dev @angular/cli@latest
Post your comments / questions
Recent Article
- How to add two numbers in Android Studio? | Source Code
- FindViewByID returns null in android studio -SOLVED
- Saving changes is not permitted in SQL SERVER - [SOLVED]
- Restore of database failed. File cannot be restored over the existing. -[SOLVED]
- One or more projects in the solution were not loaded correctly in Visual Studio 2019 | FIXED
- How to find Laptop's Battery Health?
- SOLVED-Related Field got invalid lookup: icontains error in Django
- How to enable Search Feature in Django admin?
Related Article