Error Will Creating App


#1

infiny@infiny:~/cordova_projects$ ionic start cutePuppyPics --v2

/home/infiny/.nvm/versions/node/v0.12.9/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/start_wizard.js:94
ps.stdout.on(‘data’, (data) => {
^^
SyntaxError: Unexpected token =>
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions…js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.start_wizard (/home/infiny/.nvm/versions/node/v0.12.9/lib/node_modules/ionic/node_modules/ionic-app-lib/index.js:25:12)
at Object. (/home/infiny/.nvm/versions/node/v0.12.9/lib/node_modules/ionic/lib/ionic/start.js:13:30)
at Module._compile (module.js:460:26)

/home/infiny/.nvm/versions/node/v0.12.9/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/start_wizard.js:94
ps.stdout.on(‘data’, (data) => {
^^
Unexpected token => (CLI v2.2.1)

Your system information:

Cordova CLI: 6.4.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 3.13
Node Version: v0.12.9
Xcode version: Not installed
is anything wrong with it?


#2

I have same error! how mst do for fix it?


#3

If you also have the same ancient node version as OP, upgrade it (6.9.4 was the most recent LTS last I checked).


#4

valix85 .It is issue due to node migration.use node version manger set global 6.9.4 . First clean npm and then install it .