Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhoneGap for Windows Phone - There is no script engine for file extension ".js"

I've created new project using Microsoft visual Studio ,but got a compilation error as below:

  1. There is no script engine for file extension ".js"
  2. The command "CScript "c:\users\raja\documents\visual studio 2010\Projects\EasyMed.3\EasyMed.3/BuildManifestProcessor.js" "c:\users\raja\documents\visual studio 2010\Projects\EasyMed.3\EasyMed.3\EasyMed.3.csproj"" exited with code 1.

Any idea?

like image 802
Raja O Avatar asked Oct 09 '12 11:10

Raja O


3 Answers

This problem happens when your .js files become associated with something besides CScript. Usually it happens when you decide to make some text editor the default. You can reset it by typing this from a command line:

assoc .js=JSFILE

like image 168
Tristan Reid Avatar answered Nov 10 '22 17:11

Tristan Reid


The instructions for installing Cordova 2.1 for Windows Phone are not complete.

They say:

  • copy the file CordovaStarter-x.x.x.zip to the folder : \My Documents\Visual Studio 2010\Templates\ProjectTemplates\

But that file is not supplied. There are updated instructions here (see section 2.1).

Here is the issue at apache: https://issues.apache.org/jira/browse/CB-1531

See also this question for more details: Not Able To Install Apache Cordova for Windows Phone7

like image 1
rjmunro Avatar answered Nov 10 '22 18:11

rjmunro


There is no script engine for file extension----- Try this :

http://www.microsoft.com/downloads/details.aspx?FamilyID=47809025-D896-482E-A0D6-524E7E844D81&displaylang=en

like image 1
Raja O Avatar answered Nov 10 '22 18:11

Raja O