Visual Studio 2013 Cordova App Build Error - Freezes - node.js

I'm not being able to build a Cordova app in Visual Studio 2013. The build starts but freezes a couple of seconds later.
This last output line from the build process:
Could not find Cordova as a local module. Expecting to find it
installed globally.
I've countless times ran the Cordova install command (globally) on node.js and still get the same build error.
I'm not sure how to get around this issue.
Does anyone has an idea what's the problem or what I'm missing ?

I had same problem and i tried bunch of solutions... The problem was salved by change settings in my firewall. I observed that the firewall blocks one of js process(node.exe). When I turn off firewall the VS unfreezes. So I reconfigured it and my problem disappeared. I use win 7 64 bit, and VS 2013 update 4.
You can also try switch on the x64 IIS(if you're using 64bit OS): Cordova Tools for Visual Studio 2013 CTP3 crashes or gets freezed
and/or update the Web Essentials Nightly:
http://www.roelvanlisdonk.nl/?p=3989

Related

Apache Cordova Tools with Visual Studio 2015 Community Edition

I am totally new to Apache Cordova tools with VS 2015. I just tried to create basic initial project, added nothing more and trying to build it, but it fails everytime.
For the specific error I get, I performed all the steps mentioned at:
Configuring Apache Cordova with VS2015.
I am not able to get rid of this error and run the most basic project.
Here is my sample code: https://1drv.ms/f/s!ApUTYQW5TdbIgzrPGeUkxWVmmy0Z
I ran into this problem and was able to solve it using the solution here: https://stackoverflow.com/a/31688018/4045156
The solution is for a slightly different problem, but in my case it did resolve it. :)
EDIT: here's the solution from that post:
Close all VS instances
cd %appdata%\"..\Local\Microsoft\Phone Tools"
rename CoreCon folder to something else
Launch VS again.
As mentioned in the official link - configure VS tools for Apache Cordova which you are following,
If you see unexpected errors when trying to build the Blank App template after installing Visual Studio Tools for Apache Cordova, you can try clearing your cache and reinstalling the Cordova CLI pre-processor, vs-tac, on your PC.Typically, this is only necessary if you try to build a Cordova app and see the error Cannot find module [modulename].
For other errors, you may have to look at workarounds link.
According to me, clearing cache should resolve the issue or this issue would have got introduced in latest version of Visual Studio once again.
I also suggest you to look at the following SO posts which should help you out in this issue.
VS dont work with TACO
Error with cordova using VS
Hope this helps. Cheers.

VS2012 stops working after Win10 1607 update (anniversary update)

I´ve just updated my Windows 10 dev machine with the following update kit:
Feature update to Windows 10, version 1607
After that update, started automatically when I shut down Windows, I´m trying to open my VS2012 solutions and I´m getting the following error for all of my projects in all of my solutions:
Load Failed. The project requires user input. Reload the project for more information.
After choosing "Reload Project" I get the same error and on the output windows I get:
error : Internal error occurred. Additional information: ''.
Seens that this Win10 update messed up with my development environment.
Does anyone had the same behaviour ? What can be done without a full reinstall ?
Update VS2012 ( Tools > Extension and updates... > Updates )
The Vs2012 Update 5 fixes the problem
I tried the update 5 for VS 2012 and that did not solve the problem. What did solve the problem was removing Security Update for Microsoft Windows (KB4025344)

Error Installing Windows 10 development tools for Visual Studio 2015 RC on Windows 8.1

I am running Windows 8.1 and I have installed Visual Studio 2015 Enterprise RC with Blend.
I am trying to install the Windows 10 development tools for Visual Studio 2015 RC and getting the following error:
ExecuteError: Package (VSSecondaryInstaller_box) failed: Error Message Id: 1603 ErrorMessage: Windows 10 SDK 10.0.10069 : The installer failed. User cancelled installation. Error code: -2147023294
Has anyone else gotten this error and found a solution to successfully install?
Through a quick google of the error code you provided, I found an article with the following post:
To get unblocked, go to https://dev.windows.com/downloads/windows-10-developer-tools. Scroll to the bottom of the page and install the Windows 10 SDK and Windows 10 emulators outside of Visual Studio setup.
Source:
https://social.msdn.microsoft.com/Forums/en-US/17bc9d5e-2ea7-4149-bb75-23997db8bd25/known-issue-emulators-for-windows-mobile-10010069-the-installer-failed-user-cancelled?forum=Win10SDKToolsIssues
I cannot speak for the solutions' effectiveness personally, but it was a marked answer. I hope this helps!
We've fixed this issue, and have released an update as of 7PM PDT 30 April 2015.
New installs of Visual Studio 2015 RC should expect to no longer encounter this problem, unless you lose your internet connection during installation. (That is, this error now indicates that the Windows SDK or Windows Emulator setup invoked by Visual Studio setup has lost internet connectivity and cannot download necessary files.)
To fix the issue, re-run setup and select the features "Universal
Windows App Development Tools" and/or "Emulators for Windows Mobile"
again.
If you have already installed Visual Studio and encountered this problem, you can now modify your Visual Studio installation to successfully install.
Go to Program & Features, select Visual Studio 2015 RC, and select Change.
Click Modify, then select the features "Universal Windows App
Development Tools" and/or "Emulators for Windows Mobile", and click
Update.
Note that "Universal Windows App Development Tools" will be already selected. This is expected. Keep it selected, and click Update.
An alternate solution is to install the Windows 10 SDK and Windows Emulators separately. Go to https://dev.windows.com/downloads/windows-10-developer-tools. Scroll to the bottom of the page and install the Windows 10 SDK and Windows 10 emulators outside of Visual Studio setup.
(See also this known issue: https://social.msdn.microsoft.com/Forums/en-US/17bc9d5e-2ea7-4149-bb75-23997db8bd25/)
Thanks!
-Paul Chapman (program manager with Visual Studio at Microsoft)
Installed Windows 10 installed from scratch.
Installed VS2015 from ISO.
VS2015 failed to install the Windows 10 emulators.
No loss of connectivity.
Here's my 2 cents. I tried all the methods in all the forums and the tools failed to install for me on Windows 10. Then as a last resort, I enabled 'Developer Mode' in Settings and tried installing the tools again and voila! They did.

The VS 2012 Update 2 installation hang at the beginning

I'm installing VS2012 update 2, but now whenever I tried to install, the installation hang at the beginning while applying "Microsoft Portable Library Multi-Target Pack" and not able to progress at all. I'm running Windows 8 x64 with latest updates and VS2012 Ultimate.
Anyone encountered the same situation? Anyone got it working?
BTW, I have 2 win8 x64 machines, both have this issue.

WebAPI projects stopped working in Visual Studio 2012 Update 1

Perfectly working project stopped working after I upgraded to Update 1. More frustrating is - it rebuilds perfectly. But when I try to run I get a modal msgbox with "System.Exception" in it ONLY.
Now I even tried by creating a fresh webAPI project - even that doesn't work.
I had to uninstall VS 2012 and re-install it. I had similar issue when I tried instaling SQL 2012 Express which required VS2010 SP1 and didn't install without that. So I decided to rebuild all and now all are working.

Resources