'cordova-plugin-console':Error: cmd: Command failed with exit code ENOENT


#1

Hello All,

**I am getting error in when i am add platform to ionic project **

Error:

C:\IONIC2\cutePuppyPics>ionic platform add android
Adding android project...


Creating Cordova project for the Android platform:

        Path: platforms\android
        Package: com.ionicframework.cutepuppypics415768

        Name: cutePuppyPics
        Activity: MainActivity
        Android target: android-25

Subproject Path: CordovaLib
Android project created with cordova-android@6.1.2

Installing "cordova-plugin-console" for android


Failed to install 'cordova-plugin-console':Error: cmd: Command failed with exit code ENOENT
    at ChildProcess.whenDone (C:\Users\Android\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
    at emitOne (events.js:96:13)
    at ChildProcess.emit (events.js:188:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:213:12)
    at onErrorNT (internal/child_process.js:367:16)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)


Error: cmd: Command failed with exit code ENOENT

#2

This again is downloading data from Github (or is it NPM in this case?) in the background. As you had network problems before, you should find a way to check which URLs are requested in the background and see if these work for you.


#3

Here is the documentation for configuring npm. Note the ability to set proxies. If you are behind some sort of firewall, go ask whoever set it up what to put in there. Until you get that sorted out once and for all, pretty much nothing you try to do involving building an Ionic app is going to work.