Ionic framework not installed, cannot find ionic-angular/package

when I do ionic info it says the Ionic Framework : not installed

I installed cordova@8.1.2 and ionic@4.4.0

Here is the order of commands:

sudo rm -rf node_modules
sudo npm uninstall -g ionic
sudo npm uninstall -g cordova
sudo npm install -g cordova@8.1.2
sudo npm install -g ionic@4.4.0
ionic info

APMDRD2PAASINGs-MacBook-Pro:iphis-mobile superuser$ ionic info
[ERROR] Error loading ionic-angular package.json: Error: Cannot find module
[ERROR] Error loading @ionic/app-scripts package.json: Error: Cannot find module


ionic (Ionic CLI) : 4.4.0 (/Users/superuser/.nvm/versions/node/v11.2.0/lib/node_modules/ionic)
Ionic Framework : not installed
@ionic/app-scripts : not installed


cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : ios 4.5.4
Cordova Plugins : cordova-plugin-ionic-webview 1.2.1, (and 14 other plugins)


NodeJS : v11.2.0 (/Users/superuser/.nvm/versions/node/v11.2.0/bin/node)
npm : 6.9.0
OS : macOS
Xcode : Xcode 10.1 Build version 10B61