Ionic error - events.js:160 throw er; // Unhandled 'error' event

My project was working fine. But suddnly I cannot do anything. All the inoic commands giving same error.
Below is the error I get. My Node version is v6.10.3

C:\Users\user1>ionic info
events.js:160
      throw er; // Unhandled 'error' event

Error: read EINVAL
    at exports._errnoException (util.js:1018:11)
    at TTY.onread (net.js:568:26)

package.json

{
    "name": "myApp",
    "version": "0.0.1",
    "description": "An Ionic project",
    "dependencies": {
        "angular-route": "^1.6.6",
        "cordova-android": "^6.2.3",
        "cordova-plugin-console": "^1.0.5",
        "cordova-plugin-device": "^1.1.4",
        "cordova-plugin-inappbrowser": "^1.7.1",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.1",
        "cordova-plugin-whitelist": "^1.3.1",
        "express": "^4.15.4",
        "gulp": "^3.5.6",
        "gulp-concat": "^2.2.0",
        "gulp-minify-css": "^0.3.0",
        "gulp-rename": "^1.2.0",
        "gulp-sass": "^2.0.4",
        "ionic-plugin-keyboard": "^2.2.1"
    },
    "devDependencies": {
        "@ionic/cli-plugin-cordova": "1.4.1",
        "@ionic/cli-plugin-gulp": "1.0.2",
        "@ionic/cli-plugin-ionic1": "2.0.1",
        "bower": "^1.3.3",
        "gulp-util": "^2.2.14",
        "shelljs": "^0.3.0"
    },
    "cordova": {
        "plugins": {
            "cordova-plugin-whitelist": {},
            "cordova-plugin-inappbrowser": {},
            "cordova-plugin-console": {},
            "cordova-plugin-device": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-statusbar": {},
            "ionic-plugin-keyboard": {}
        },
        "platforms": [
            "android"
        ]
    }
}

Run ionic -v and ionic info --verbose please.

I cannot run any of the ionic command. Just get above error only.

Then uninstall and re-install Ionic.

Problem remains same. tried with new installation. Can anyone please help me ?

One solution: Uninstall your node, install nvm (or nvm-windows if you are on Windows), install a new node (which includes npm) with this, then install ionic and cordova again and try your command again. The problem should be gone.

Did not work for me. :frowning: