Ionic build ios stuck

stuck at ionic build ios
following error is coming
is there any way to come out of it.
i am new in ionic2

ionic-hello-world@ ionic:build /Users/myuser/HybridApps/mehwerLounge
ionic-app-scripts build

Caught exception:
TypeError: undefined is not a function
at Socket. (/usr/local/lib/node_modules/ionic/lib/utils/npmScripts.js:39:49)
at Socket.emit (events.js:129:20)
at readableAddChunk (_stream_readable.js:163:16)
at Socket.Readable.push (_stream_readable.js:126:10)
at Pipe.onread (net.js:538:20)

Mind letting us know? Issues · ionic-team/ionic-cli · GitHub

keywords if/then/else require v5 option
[13:33:24] ionic-app-scripts 0.0.47
Caught exception:
TypeError: undefined is not a function
at Socket. (/usr/local/lib/node_modules/ionic/lib/utils/npmScripts.js:39:49)
at Socket.emit (events.js:129:20)
at readableAddChunk (_stream_readable.js:163:16)
at Socket.Readable.push (_stream_readable.js:126:10)
at Pipe.onread (net.js:538:20)

Mind letting us know? Issues · ionic-team/ionic-cli · GitHub

[13:33:24] ionic-app-script task: “build”
[13:33:24] TypeError: undefined is not a function

npm ERR! Darwin 16.3.0
npm ERR! argv “/Users/myuser/.nvm/versions/node/v0.12.7/bin/node” “/Users/farrukhqamar/.nvm/versions/node/v0.12.7/bin/npm” “run” “ionic:build” “–”
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world@ ionic:build: ionic-app-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world@ ionic:build script ‘ionic-app-scripts build’.
npm ERR! This is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts build
npm ERR! You can get their info via:
npm ERR! npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/myuser/HybridApps/mehwerLounge/npm-debug.log

You have an ancient version of Node.js. Install at least v6.9.2 that’s the current LTS (Long Term Support).

Thanks for the reply
It is solved :slight_smile: