ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Error Building or emulating the app..

Open abdallahnh opened this issue 10 years ago • 3 comments

Hi All,

Hope someone can help me, i'm trying to build my application for android but i'm getting the below error: 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 [email protected] 3 info using [email protected] 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle ionic-hello-world@~prebuild: ionic-hello-world@ 6 silly lifecycle ionic-hello-world@~prebuild: no script for prebuild, continuing 7 info lifecycle ionic-hello-world@~build: ionic-hello-world@ 8 verbose lifecycle ionic-hello-world@~build: unsafe-perm in lifecycle true 9 verbose lifecycle ionic-hello-world@~build: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;D:\Scryptech\cordova\githubSample\node_modules.bin;C:\Program Files\nodejs;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\abdal.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\Doctrine extensions for PHP;C:\Program Files (x86)\Skype\Phone;C:\Program Files\OpenVPN\bin;C:\Program Files\SourceGear\Common\DiffMerge;C:\Users\abdal\AppData\Local\Android\sdk\platform-tools;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\abdal\AppData\Local\Programs\Python\Python35-32\Scripts;C:\Users\abdal\AppData\Local\Programs\Python\Python35-32;C:\Users\abdal\AppData\Roaming\npm 10 verbose lifecycle ionic-hello-world@~build: CWD: D:\Scryptech\cordova\githubSample 11 silly lifecycle ionic-hello-world@~build: Args: [ '/d /s /c', 'ionic-app-scripts build' ] 12 silly lifecycle ionic-hello-world@~build: Returned: code: 1 signal: null 13 info lifecycle ionic-hello-world@~build: Failed to exec build script 14 verbose stack Error: ionic-hello-world@ build: ionic-app-scripts build 14 verbose stack Exit status 1 14 verbose stack at EventEmitter. (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. (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 ionic-hello-world@ 16 verbose cwd D:\Scryptech\cordova\githubSample 17 error Windows_NT 10.0.10586 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.7.0 20 error npm v3.10.3 21 error code ELIFECYCLE 22 error ionic-hello-world@ build: ionic-app-scripts build 22 error Exit status 1 23 error Failed at the ionic-hello-world@ 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 ionic-hello-world 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 ionic-hello-world 23 error Or if that isn't available, you can get their info via: 23 error npm owner ls ionic-hello-world 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ]

Note: that i can run using serve.

Thanks.

abdallahnh avatar Oct 10 '16 14:10 abdallahnh

i have the same error after i upgraded npm to 3.10.8

mjakupi avatar Oct 10 '16 16:10 mjakupi

Hello all! Thanks for using Ionic! I am going to close this issue as a duplicate of #1506 .

jgw96 avatar Oct 12 '16 00:10 jgw96

Hi, No this is different the serve is working but build and emulate is not

Get Outlook for iOS

On Wed, Oct 12, 2016 at 3:15 AM +0300, "Justin Willis" [email protected] wrote:

Closed #1507.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

abdallahnh avatar Oct 12 '16 07:10 abdallahnh