简体   繁体   English

用cordova为android建立离子项目

[英]building ionic project for android with cordova

I'm trying to build my ionic project on windows.. 我正在尝试在Windows上构建离子项目。

when i run cordova build android, it will reach this and then it will stop and end! 当我运行cordova build android时,它将到达此位置,然后它将停止并结束!

ANDROID_HOME=C:\\Users\\Lama Tatwany\\AppData\\Local\\Android\\sdk JAVA_HOME=C:\\Program Files\\java\\jdk-10 ANDROID_HOME = C:\\ Users \\ Lama Tatwany \\ AppData \\ Local \\ Android \\ sdk JAVA_HOME = C:\\ Program Files \\ java \\ jdk-10

why will it stop? 为什么会停止? what is the problem exactly? 到底是什么问题?

Running ionic cordova build android result: 运行离子cordova构建android结果:

Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (57) For more information on which environments are supported please see: https://github.com/sass/node-sass/releases/tag/v4.5.0 at module.exports (C:\\Users\\Lama Tatwany\\Downloads\\wesalApp\\node_modules\\node-sass\\lib\\binding.js:13:13) at Object. 错误:Node Sass尚不支持您当前的环境:具有不受支持的运行时的Windows 64位(57)有关支持哪些环境的更多信息,请参见: https : //github.com/sass/node-sass/releases/tag /v4.5.0(位于Module.exports)(C:\\ Users \\ Lama Tatwany \\ Downloads \\ wesalApp \\ node_modules \\ node-sass \\ lib \\ binding.js:13:13) (C:\\Users\\Lama Tatwany\\Downloads\\wesalApp\\node_modules\\node-sass\\lib\\index.js:14:35) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (C:\\ Users \\ Lama Tatwany \\ Downloads \\ wesalApp \\ node_modules \\ node-sass \\ lib \\ index.js:14:35)位于Object.Module._extensions的Module._compile(module.js:652:30)。 js(module.js:663:10)在Module.load(module.js:565:32)在tryModuleLoad(module.js:505:12)在Function.Module._load(module.js:497:3)在在Object处的require(internal / module.js:11:18)处的Module.require(module.js:596:17)。 (C:\\Users\\Lama Tatwany\\Downloads\\wesalApp\\node_modules\\@ionic\\app-scripts\\dist\\sass.js:12:19) (C:\\ Users \\ Lama Tatwany \\ Downloads \\ wesalApp \\ node_modules \\ @ionic \\ app-scripts \\ dist \\ sass.js:12:19)

Can you post command you used for building app? 您可以发布用于构建应用程序的命令吗? You should use : Ionic cordova build android. 您应该使用:Ionic cordova构建android。 Do you get any error? 你有什么错误吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM