Ionic 3 project CLI error

Hi guys, I closed the project and rerun got this below error in CLI , Please help me if anyone knows. Thanks

PS C:\Users\user\myApp> ionic serve -l
ionic : The term ‘ionic’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • ionic serve -l
  •   + CategoryInfo          : ObjectNotFound: (ionic:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

Hi@mohammad77
Check ionic -v
If you are installed ionic properly that will show your version.Otherwise you will not be inside an ionic project :smiley:

I installed ionic 3 and is working everdy but today i tried to run got this error @vibinflogesoft

@mohammad77
Can you check ionic info

when i check ionic info get the same error @vibinflogesoft

So try to remove ionic and reinstall

Sorry i cant reply faster bcz of Forum reply limitation . You mean to uninstall ionic then reinstall , right ?
I have to install all the things that i did in my ionic project again ??
or just ionic cordova ?
as i just reinstalled but still have this ‘ionic’ is not recognized as an internal or external command,
operable program or batch file.
@vibinflogesoft

@mohammad77
How did you installed ionic?
The ionic is not installed
do as follows

npm uninstall -g ionic cordova
npm install -g ionic cordova

i did the same as yours @vibinflogesoft
C:\Users\user>npm uninstall -g ionic cordova
removed 680 packages in 44.147s

C:\Users\user>npm install -g ionic cordova
C:\Users\user\AppData\Roaming\npm\cordova -> C:\Users\user\AppData\Roaming\npm\node_modules\cordova\bin\cordova
C:\Users\user\AppData\Roaming\npm\ionic -> C:\Users\user\AppData\Roaming\npm\node_modules\ionic\bin\ionic
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\ionic\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:"any
"} (current: {“os”:“win32”,“arch”:“x64”})

  • ionic@3.20.0
  • cordova@8.0.0
    added 748 packages in 167.697s

C:\Users\user>

C:\Users\user>cd myApp

C:\Users\user\myApp>ionic serve -l
’ionic’ is not recognized as an internal or external command,
operable program or batch file.

Can i share my laptop via teamviewer , if u are available for that? @vibinflogesoft

@mohammad77
please Show files inside myapp.
check node_modules folder exist in your project,if not run

npm install

That folder is there, As i connected with AngularFirebase2 too, should i reconnect that as well ?

Or can you come to teamviewer if you are available .will appreciate you alot @vibinflogesoft

Sorry bro @mohammad77
iam not using teamviewer
Still do you have error on ionic serve?
Please let me know what is the error?
Can i see files and folders inside ionic app?
if ionic info is not working that may be related with ur installation

Thanks, that problem solved. But as i connected to firebase now face this problem , should reinstall firebase again or no need. @vibinflogesoft

Runtime Error
Uncaught (in promise): Error: StaticInjectorError(AppModule)[CareerPage -> AngularFireDatabase]: StaticInjectorError(Platform: core)[CareerPage -> AngularFireDatabase]: NullInjectorError: No provider for AngularFireDatabase! Error: StaticInjectorError(AppModule)[CareerPage -> AngularFireDatabase]: StaticInjectorError(Platform: core)[CareerPage -> AngularFireDatabase]: NullInjectorError: No provider for AngularFireDatabase! at NullInjector.get (http://localhost:8100/build/vendor.js:1376:19) at resolveToken (http://localhost:8100/build/vendor.js:1674:24) at tryResolveToken (http://localhost:8100/build/vendor.js:1616:16) at StaticInjector.get (http://localhost:8100/build/vendor.js:1484:20) at resolveToken (http://localhost:8100/build/vendor.js:1674:24) at tryResolveToken (http://localhost:8100/build/vendor.js:1616:16) at StaticInjector.get (http://localhost:8100/build/vendor.js:1484:20) at resolveNgModuleDep (http://localhost:8100/build/vendor.js:11228:25) at NgModuleRef.get (http://localhost:8100/build/vendor.js:12461:16) at resolveDep (http://localhost:8100/build/vendor.js:12951:45)