Not able to execute "ionic build" on Windows


#1

Hi,

I am not able to execute “ionic build” on windows. However, the build is executed without error on CentOS 7. Here is the extract from npm-debug.log:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'build' ]
2 info using npm@3.10.3
3 info using node@v6.5.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle mfp-ionic@~prebuild: mfp-ionic@
6 silly lifecycle mfp-ionic@~prebuild: no script for prebuild, continuing
7 info lifecycle mfp-ionic@~build: mfp-ionic@
8 verbose lifecycle mfp-ionic@~build: unsafe-perm in lifecycle true
9 verbose lifecycle mfp-ionic@~build: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;D:\experiment\mfp-ionic\node_modules\.bin;C:\Program Files\nodejs;D:\development\ConEmu\ConEmu\Scripts;D:\development\ConEmu;D:\development\ConEmu\ConEmu;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\x64\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\Java\jdk1.8.0_102\bin;D:\bins\Android\sdk\tools;D:\bins\Android\sdk\platform-tools;D:\bins\Android\ndk-r12b;D:\bins\TDM-GCC-64\bin;D:\bins\IBM\MobileFirst-CLI;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\x64\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\Java\jdk1.8.0_102\bin;C:\Users\chunhoong\AppData\Roaming\npm;C:\Users\chunhoong\AppData\Local\atom\bin
10 verbose lifecycle mfp-ionic@~build: CWD: D:\experiment\mfp-ionic
11 silly lifecycle mfp-ionic@~build: Args: [ '/d /s /c', 'ionic-app-scripts build' ]
12 silly lifecycle mfp-ionic@~build: Returned: code: 1  signal: null
13 info lifecycle mfp-ionic@~build: Failed to exec build script
14 verbose stack Error: mfp-ionic@ build: `ionic-app-scripts build`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:242:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:877:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid mfp-ionic@
16 verbose cwd D:\experiment\mfp-ionic
17 error Windows_NT 6.1.7601
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
19 error node v6.5.0
20 error npm  v3.10.3
21 error code ELIFECYCLE
22 error mfp-ionic@ build: `ionic-app-scripts build`
22 error Exit status 1
23 error Failed at the mfp-ionic@ build script 'ionic-app-scripts build'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the mfp-ionic package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     ionic-app-scripts build
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs mfp-ionic
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls mfp-ionic
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Thank you.