title: SyntaxError: Unexpected token M (when running cordova project from Visual Studio 2015)
body: <p>When I attempt to run my Cordova app using Visual Studio 2015 using Remote Device, I get an error "SyntaxError: Unexpected token M". Visual Studio is installed on windows 10 which is a Parallels VM on my Mac. I have followed the steps to setup remotebuild on my Mac. From Visual Studio - Tools - options, I can successfully connect to the running remotebuild on my mac. The project runs fine when I run it on Ripple in chrome.</p>
  
  <p>Here's a little more background. When I first started working on this project, it was working fine and I was able to run it on the iOS simulator on my Mac. At one point, it started giving me a different error which was related to my iOS developer account. I opened up Xcode on my mac and realized that I needed to login to the developer website and accept the latest license agreement. Once I did that, I attempted to run the project again from Visual Studio. At that point I saw an error related to certificate. I ran the project again, and from then on I keep getting this "SyntaxError: Unexpected token M" error. </p>
  
  <p>I attempted to run an old backup of the same project. The error I get with that is:</p>
  
  <pre><code>An error occurred uploading to the build server https://10.0.1.31:3000/cordova: Error: self signed certificate in certificate chain
  </code></pre>
  
  <p>Here's the part of the output log where I see the "SyntaxError: Unexpected token M":</p>
  
  <pre><code>1&gt;  ------    changeList.deletedFilesIos:  (TaskId:11)
  1&gt;  ------    changeList.addedPluginsIos: org.apache.cordova.camera@0.3.6,org.apache.cordova.file-transfer@0.5.0,org.apache.cordova.splashscreen@1.0.0,org.apache.cordova.inappbrowser@0.6.0 (TaskId:11)
  1&gt;  ------    changeList.deletedPluginsIos:  (TaskId:11)
  1&gt;  ------    changeList.addedPlugins: org.apache.cordova.camera@0.3.6,org.apache.cordova.file-transfer@0.5.0,org.apache.cordova.splashscreen@1.0.0,org.apache.cordova.inappbrowser@0.6.0 (TaskId:11)
  1&gt;  ------    changeList.deletedPlugins:  (TaskId:11)
  1&gt;  ------ Updating plugins (TaskId:11)
  1&gt;  SyntaxError: Unexpected token M (TaskId:11)
  1&gt;Done executing task "MdaVsCli" -- FAILED. (TaskId:11)
  1&gt;Done building target "BuildMDA" in project "MyPyaarApp.jsproj" -- FAILED.: (TargetId:12)
  1&gt;
  1&gt;Project Performance Summary:
  1&gt;      672 ms  C:\svn\mypyaar\trunk\MyPyaarApp\MyPyaarApp\MyPyaarApp.jsproj   1 calls
  1&gt;                672 ms  build                                      1 calls
  1&gt;
  1&gt;Target Performance Summary:
  1&gt;        0 ms  BuildOnlySettings                          1 calls
  1&gt;        0 ms  CompileTypeScript                          1 calls
  1&gt;        0 ms  AfterBuild                                 1 calls
  1&gt;        0 ms  TrackJsChanges                             1 calls
  1&gt;        0 ms  BeforeBuild                                1 calls
  1&gt;        0 ms  PreComputeCompileTypeScript                1 calls
  1&gt;        0 ms  CoreBuild                                  1 calls
  1&gt;       16 ms  _CheckForInvalidConfigurationAndPlatform   1 calls
  1&gt;      266 ms  EnsureNodeJsRequirementsAreAtCorrectVersion   1 calls
  1&gt;      266 ms  InstallMDA                                 1 calls
  1&gt;      391 ms  BuildMDA                                   1 calls
  1&gt;
  1&gt;Task Performance Summary:
  1&gt;        0 ms  MdaVerifySetup                             1 calls
  1&gt;        0 ms  MdaTrackJsChanges                          1 calls
  1&gt;        0 ms  Message                                    2 calls
  1&gt;        0 ms  VsTsc                                      2 calls
  1&gt;        0 ms  AssignTargetPath                           1 calls
  1&gt;      266 ms  RunMdaInstall                              1 calls
  1&gt;      266 ms  CallTarget                                 1 calls
  1&gt;      391 ms  MdaVsCli                                   1 calls
  1&gt;
  1&gt;Build FAILED.
  1&gt;
  1&gt;Time Elapsed 00:00:00.65
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  ========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
  </code></pre>