[英]Phonegap “phonegap build ios” command is not working
I am new to phonegap, and I tried to create a simple phonegap application. 我是phonegap的新手,因此尝试创建一个简单的phonegap应用程序。
After installation the phonegap with command line:--- 用命令行安装phonegap之后:---
I have created the project successfully but when i trying to run phonegap build ios
command then a Error alert
message is coming with There is no script engine for file extension ".js"
in it. 我已经成功创建了项目,但是当我尝试运行
phonegap build ios
命令时,出现Error alert
消息, There is no script engine for file extension ".js"
。
I am using Windows 7
, and I installed Node.js
我正在使用
Windows 7
,并且安装了Node.js
Edit: 编辑:
Adding Image---- 添加图像----
It might be that Windows is associating the js extension with the wrong program. Windows可能将js扩展名与错误的程序相关联。 The PhoneGap build process probably relies on this extension being correctly associated in windows.
PhoneGap构建过程可能依赖于此扩展名在Windows中正确关联。
Try running this command in the command prompt: assoc .js=JSFile
尝试在命令提示符下运行此命令:
assoc .js=JSFile
Then try to rerun your build. 然后尝试重新运行您的构建。
Original answer is here: Running Javascript with CScript? 原始答案在这里: 用CScript运行Javascript?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.