Create seed project error on Mac , using ionic start


#1

i use

sudo npm install -g ionic

install ionic , then

ionic start myapp3

but got this error .

Initializing cordova project.
Fetching plugin “org.apache.cordova.device” via plugin registry
Fetching plugin “org.apache.cordova.console” via plugin registry
Fetching plugin “org.apache.cordova.statusbar” via plugin registry

/usr/local/lib/node_modules/ionic/lib/ionic/stats.js:525
this.createdId();
^
TypeError: Object # has no method 'createdId’
at Object.exports.IonicStats.t (/usr/local/lib/node_modules/ionic/lib/ionic/stats.js:525:12)

anyone know howto fix it ?


#2

Did you install cordova?
Don’t know if you have to in order to run ionic start but just tried same thing as you did couple minutes ago and it worked for me. (and I did install cordova globally first)


#3

Cordova-cli works fine after upgraded xcode to version 5 . But ionic still fails …


#4

is not you mistake
i just try to start ionic project and have the same problem

open file /usr/local/lib/node_modules/ionic/lib/ionic/stats.js
on line 525 change

this.createdId();

to

this.createId();

Ionic team, please note this issue. Thanks!


#5

It works. Thanks…


#6

Thanks @taras_budzyn! Good work! I’ve merged in the fix.


#7

I think we’ll bump the version and release it later today.