Issue when start ionic project


#1

I have a problem when start my ionic project with the following comands:

$ ionic start --appname EncuestasAPP -id com.utn.encuestasapp --template sidemenu escuestasAPP --v1
Directory already exists: C:\Users\GerardoFabricio\Desktop\multipantalla\escuestasAPP
Would you like to overwrite the directory with this new project?
(yes/no): y

Creating an Ionic app in C:\Users\GerardoFabricio\Desktop\multipantalla\escuestasAPP based on the sidemenu template.

Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip
Downloading: https://github.com/driftyco/ionic-starter-sidemenu/archive/master.zip
Installing npm packages (may take a minute or two)...
Error updating config.xml file: TypeError: packageName.replace is not a function
    at C:\Users\GerardoFabricio\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\lib\start.js:869:10
    at Parser.<anonymous> (C:\Users\GerardoFabricio\AppData\Roaming\npm\node_modules\ionic\node_modules\xml2js\lib\xml2js.js:484:18)
    at emitOne (events.js:96:13)
    at Parser.emit (events.js:188:7)
    at Object.onclosetag (C:\Users\GerardoFabricio\AppData\Roaming\npm\node_modules\ionic\node_modules\xml2js\lib\xml2js.js:445:26)
    at emit (C:\Users\GerardoFabricio\AppData\Roaming\npm\node_modules\ionic\node_modules\sax\lib\sax.js:640:35)
    at emitNode (C:\Users\GerardoFabricio\AppData\Roaming\npm\node_modules\ionic\node_modules\sax\lib\sax.js:645:5)
    at closeTag (C:\Users\GerardoFabricio\AppData\Roaming\npm\node_modules\ionic\node_modules\sax\lib\sax.js:905:7)
    at Object.write (C:\Users\GerardoFabricio\AppData\Roaming\npm\node_modules\ionic\node_modules\sax\lib\sax.js:1452:13)
    at Parser.exports.Parser.Parser.parseString (C:\Users\GerardoFabricio\AppData\Roaming\npm\node_modules\ionic\node_modules\xml2js\lib\xml2js.js:503:31)

My version:

$ ionic --version
2.2.3

#2

Check the params of ‘ionic start’ and maybe leave them off. I think you are missing a -