I am having the same issue here
Trying to build a production app on a Mac Mini. The Build fails on that machine, but works on my Macboko Pro…
I already tried installing app-scripts as a global module, but that didn’t work either…
No matter which ionic command I try to execute, I always get the same error…
This is the output of ionic info
Your system information:
Cordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v7.6.0
Xcode version: Xcode 8.2.1 Build version 8C1002
This is the npm log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/7.6.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'ionic:serve',
1 verbose cli '--',
1 verbose cli '--v2',
1 verbose cli '--address',
1 verbose cli '0.0.0.0',
1 verbose cli '--port',
1 verbose cli '8100',
1 verbose cli '--livereload-port',
1 verbose cli '35729' ]
2 info using npm@4.4.0
3 info using node@v7.6.0
4 verbose run-script [ 'preionic:serve', 'ionic:serve', 'postionic:serve' ]
5 info lifecycle ionic-hello-world@~preionic:serve: ionic-hello-world@
6 silly lifecycle ionic-hello-world@~preionic:serve: no script for preionic:serve, continuing
7 info lifecycle ionic-hello-world@~ionic:serve: ionic-hello-world@
8 verbose lifecycle ionic-hello-world@~ionic:serve: unsafe-perm in lifecycle true
9 verbose lifecycle ionic-hello-world@~ionic:serve: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/iosdeploy/garcon-mobile-apps/bestellbar-release-2017-02-24-15:50:20/bestellbar-hybrid/current-version/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
10 verbose lifecycle ionic-hello-world@~ionic:serve: CWD: /Users/iosdeploy/garcon-mobile-apps/bestellbar-release-2017-02-24-15:50:20/bestellbar-hybrid/current-version
11 silly lifecycle ionic-hello-world@~ionic:serve: Args: [ '-c',
11 silly lifecycle 'ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"' ]
12 info lifecycle ionic-hello-world@~ionic:serve: Failed to exec ionic:serve script
13 verbose stack Error: ionic-hello-world@ ionic:serve: `ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"`
13 verbose stack spawn ENOENT
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:33:16)
13 verbose stack at emitTwo (events.js:106:13)
13 verbose stack at ChildProcess.emit (events.js:192:7)
13 verbose stack at maybeClose (internal/child_process.js:890:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
14 verbose pkgid ionic-hello-world@
15 verbose cwd /Users/iosdeploy/garcon-mobile-apps/bestellbar-release-2017-02-24-15:50:20/bestellbar-hybrid/current-version
16 verbose Darwin 16.4.0
17 verbose argv "/usr/local/Cellar/node/7.6.0/bin/node" "/usr/local/bin/npm" "run" "ionic:serve" "--" "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
18 verbose node v7.6.0
19 verbose npm v4.4.0
20 error file sh
21 error code ELIFECYCLE
22 error errno ENOENT
23 error syscall spawn
24 error ionic-hello-world@ ionic:serve: `ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"`
24 error spawn ENOENT
25 error Failed at the ionic-hello-world@ ionic:serve script 'ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"'.
25 error Make sure you have the latest version of node.js and npm installed.
25 error If you do, this is most likely a problem with the ionic-hello-world package,
25 error not with npm itself.
25 error Tell the author that this fails on your system:
25 error ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
25 error You can get information on how to open an issue for this project with:
25 error npm bugs ionic-hello-world
25 error Or if that isn't available, you can get their info via:
25 error npm owner ls ionic-hello-world
25 error There is likely additional logging output above.
26 verbose exit [ 1, true ]
...skipping...
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/7.6.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'ionic:serve',
1 verbose cli '--',
1 verbose cli '--v2',
1 verbose cli '--address',
1 verbose cli '0.0.0.0',
1 verbose cli '--port',
1 verbose cli '8100',
1 verbose cli '--livereload-port',
1 verbose cli '35729' ]
2 info using npm@4.4.0
3 info using node@v7.6.0
4 verbose run-script [ 'preionic:serve', 'ionic:serve', 'postionic:serve' ]
5 info lifecycle ionic-hello-world@~preionic:serve: ionic-hello-world@
6 silly lifecycle ionic-hello-world@~preionic:serve: no script for preionic:serve, continuing
7 info lifecycle ionic-hello-world@~ionic:serve: ionic-hello-world@
8 verbose lifecycle ionic-hello-world@~ionic:serve: unsafe-perm in lifecycle true
9 verbose lifecycle ionic-hello-world@~ionic:serve: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/iosdeploy/garcon-mobile-apps/bestellbar-release-2017-02-24-15:50:20/bestellbar-hybrid/current-version/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
10 verbose lifecycle ionic-hello-world@~ionic:serve: CWD: /Users/iosdeploy/garcon-mobile-apps/bestellbar-release-2017-02-24-15:50:20/bestellbar-hybrid/current-version
11 silly lifecycle ionic-hello-world@~ionic:serve: Args: [ '-c',
11 silly lifecycle 'ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"' ]
12 info lifecycle ionic-hello-world@~ionic:serve: Failed to exec ionic:serve script
13 verbose stack Error: ionic-hello-world@ ionic:serve: `ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"`
13 verbose stack spawn ENOENT
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:33:16)
13 verbose stack at emitTwo (events.js:106:13)
13 verbose stack at ChildProcess.emit (events.js:192:7)
13 verbose stack at maybeClose (internal/child_process.js:890:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
14 verbose pkgid ionic-hello-world@
15 verbose cwd /Users/iosdeploy/garcon-mobile-apps/bestellbar-release-2017-02-24-15:50:20/bestellbar-hybrid/current-version
16 verbose Darwin 16.4.0
17 verbose argv "/usr/local/Cellar/node/7.6.0/bin/node" "/usr/local/bin/npm" "run" "ionic:serve" "--" "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
18 verbose node v7.6.0
19 verbose npm v4.4.0
20 error file sh
21 error code ELIFECYCLE
22 error errno ENOENT
23 error syscall spawn
24 error ionic-hello-world@ ionic:serve: `ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"`
24 error spawn ENOENT
25 error Failed at the ionic-hello-world@ ionic:serve script 'ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"'.
25 error Make sure you have the latest version of node.js and npm installed.
25 error If you do, this is most likely a problem with the ionic-hello-world package,
25 error not with npm itself.
25 error Tell the author that this fails on your system:
25 error ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
25 error You can get information on how to open an issue for this project with:
25 error npm bugs ionic-hello-world
25 error Or if that isn't available, you can get their info via:
25 error npm owner ls ionic-hello-world
25 error There is likely additional logging output above.
26 verbose exit [ 1, true ]
Does anybody has a clue how one is supposed to fix this?