2

I am new to phonegap, and I tried to create a simple phonegap application.

After installation the phonegap with command line:---

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.

I am using Windows 7, and I installed Node.js

Edit:

Adding Image----

enter image description here

Dom
  • 2,569
  • 1
  • 18
  • 28
ind
  • 43
  • 8

1 Answers1

1

It might be that Windows is associating the js extension with the wrong program. The PhoneGap build process probably relies on this extension being correctly associated in windows.

Try running this command in the command prompt: assoc .js=JSFile

Then try to rerun your build.

Original answer is here: Running Javascript with CScript?

Community
  • 1
  • 1
Hless
  • 3,326
  • 20
  • 22
  • Thanks for answer, when I am using 'assoc .js=JSFile' I am getting 'Access is deined' message. – ind Sep 24 '13 at 17:49
  • 1
    Try running a cmd.exe as administrator. Right click on cmd.exe (or a Shortcut to command prompt) and select 'Run as administrator'. Then try to run the `assoc` command again. – Hless Sep 24 '13 at 17:51
  • Also don't forget to hop back out of the command prompt after doing this, and open the command prompt as a 'normal' user. Otherwise file permissions might get a bit confusing. – Hless Sep 24 '13 at 17:54
  • Yes it's done now but still facing same problem as I mentioned in image. – ind Sep 24 '13 at 17:54
  • Did you reopen command line after executing the command? It might be needed for windows to pick up the change. – Hless Sep 24 '13 at 17:55
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/37962/discussion-between-hless-and-ind) – Hless Sep 24 '13 at 17:57