Ionic start CLI errors

Update config.xml
Initializing cordova project
Fetching plugin “org.apache.cordova.device” via plugin registry
npm ERR! registry error parsing json
image

same issue after updating ionic and cordova with versions ionic 1.3.0 and cordova 4.2.0.

If I do npm install -g plugman as well it gave me this error

SyntaxError: Unexpected token I
Internal routing error

Sorry, we cannot connect to the intended server.   

 at Object.parse (native)
    at RegClient.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:274:23)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:251:7
    at Gunzip.onEnd (zlib.js:166:5)
    at Gunzip.emit (events.js:117:20)
    at _stream_readable.js:943:16
    at process._tickCallback (node.js:419:13)
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. (CLI v1.3.0)

If I install cordova 4.0.0 it works :confused:

I’m having the same issue as original poster. I stepped down to Cordova 4.0.0, but it didn’t fix it for me. Here is the error I’m getting when using the most up to date Ionic and Cordova versions.

Erics-MacBook-Air:~ eric$ sudo ionic start myApp blank
Creating Ionic app in folder /Users/eric/myApp based on blank project

The directory /Users/eric/myApp already exists.
Would you like to overwrite the directory with this new project?
(yes/no): yes

Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
[=============================]  100%  0.0s

Downloading: https://github.com/driftyco/ionic-starter-blank/archive/master.zip
[=============================]  100%  0.0s

Update config.xml
Initializing cordova project
Fetching plugin "org.apache.cordova.device" via plugin registry
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! registry error parsing json
SyntaxError: Unexpected token I
Internal routing error

Sorry, we cannot connect to the intended server.

We have just been notified of this problem. We will correct it as soon as possible.

Feel free to contact us if you have any questions: support@iriscouch.com

at Object.parse (native)
at RegClient.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-    lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:274:23)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:251:7
at Gunzip.onEnd (zlib.js:167:5)
at Gunzip.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickCallback (node.js:442:13)

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. (CLI v1.3.0)

Erics-MacBook-Air:~ eric$

Update: it looks like plugins.cordova.io is down. I guess it’s a Cordova system-wide issue…

Same here. I used it yesterday :frowning:

Now it is broken… hope it could be fixed thanks ionic. :smile:

I got a temp solution for it. When Npm ERR!.. Shows up, just ctrl/command+c to stop it. Then go into the folder Cordova add platform iOS. Then I can run it. :slight_smile: hope it can help you guys.

I also expect ionic fix it. :laughing:

Cordova 4.1.2 worked for me.

Working again with Cordova 4.2.0 for me.