DOWNLOADING: https://github.com/driftyco/ionic-starter-tabs/archive/master.zip
Initializing cordova project.
Fetching plugin “org.apache.cordova.device” via plugin registry
Error: Failed to fetch package information for org.apache.cordova.device
at /usr/local/lib/node_modules/cordova/node_modules/plugman/src/registry/registry.js:32:20
at Request.cb [as _callback] (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/registry/registry.js:251:9)
at self.callback (/usr/local/lib/node_modules/cordova/node_modules/plugman/node_modules/request/index.js:148:22)
at Request.EventEmitter.emit (events.js:117:20)
at ClientRequest.self.clientErrorHandler (/usr/local/lib/node_modules/cordova/node_modules/plugman/node_modules/request/index.js:257:10)
at ClientRequest.EventEmitter.emit (events.js:95:17)
at Socket.socketErrorListener (http.js:1547:9)
at Socket.EventEmitter.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:415:13) ERROR: Unable to add plugins. Perhaps your version of Cordova is too old. Try updating (npm install -g cordova), removing this project folder, and trying again.
Exiting.
Following is working environment,
latest Node.js
latest ionic framework
latest Cordova
I also tried tried to workout sample projects given here but same problem
Can someone guide me to start work with IONIC Framework?
I have fixed it myself. Using the below error message,
ERROR: Unable to add plugins. Perhaps your version of Cordova is too old. Try updating (npm install -g cordova), removing this project folder, and trying again.
move into your project folder myApp and install the cordova plugin directly from their GitHub using the below command
Just to add to this, had a similar problem on a Windows 8.1 box running latest version of npm and cordova. My problem was related to the Ionic Keyboard plugin trying to download to a directory that does not exist… rather than anything to do with cordova being out of date. As soon as I added that directory tree in my AppData directory it worked fine.
DOWNLOADING: https://github.com/driftyco/ionic-starter-blank/archive/master.zip
Initializing cordova project.
Fetching plugin “org.apache.cordova.device” via plugin registry
Fetching plugin “org.apache.cordova.console” via plugin registry
Fetching plugin “https://github.com/driftyco/ionic-plugins-keyboard” via git clone
Error: Command failed: fatal: could not create work tree dir ‘C:\Users\fowlergz.ADF\AppData\Local\Temp\plugman\git\1400749889006’.: No such file or directory
at ChildProcess.exithandler (child_process.js:637:15)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
ERROR: Unable to add plugins. Perhaps your version of Cordova is too old. Try updating (npm install -g cordova), removing this project folder, and trying again.
Exiting.
I got this error. Is there something wrong with my JAVA_HOME path? Java should be installed correctly…
Error: Failed to run ‘java -version’, make sure your java environment is set up
including JDK and JRE.
Your JAVA_HOME variable is C:\Program Files (x86)\Java\jdk1.7.0_55\bin
Error: Command failed: ‘java’ is not recognized as an internal or external comma
nd,
operable program or batch file.
at C:\Users\sebastiaan\.cordova\lib\android\cordova\3.5.0\bin\lib\check_reqs
.js:62:22
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket. (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
Error: C:\Users\sebastiaan.cordova\lib\android\cordova\3.5.0\bin\create.bat: Co
mmand failed with exit code 8
at ChildProcess.whenDone (C:\Users\sebastiaan\AppData\Roaming\npm\node_modul
es\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
Unable to add platform android. Please see console for more info.
Problem seems to be very machine depend (and/or intermittent) as I have exactly the same set up on another PC and do not encounter this issue. I recall that I only created the /plugman directory, and then it worked fine.
I had the same issue on Mac OS X 10.9 with the latest cordova, et al. The solution was for me to remove the proxy setting for git, as I fortunately didn’t need it.