Failed installing Node.js Choco Visual Studio 2019 build tools - node.js

I have been trying to install Node.js on my Windows 11 laptop. Everything seems to go fine. But while installing the build tools, it seems like it is unable to detect any supported Visual Studio Product.
Here is what the error I have been facing:
ERROR: Unable to detect any supported Visual Studio product. You may try passing --installPath or both --productId and --channelId parameters.
The upgrade of visualstudio2019-workload-vctools was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2019-workload-vctools\tools\ChocolateyInstall.ps1'.
See log for details.
**Failures
visualstudio2019-workload-vctools (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2019-workload-vctools\tools\ChocolateyInstall.ps1'.
See log for details.
visualstudio2019buildtools (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\visualstudio2019buildtools\tools\ChocolateyInstall.ps1'.
See log for details.**
Since I am new with it, I haven't tried anything yet.
Also, Node.js commands are running fine on Command Prompt. But it doesn't work when I try it out in the VSCode Terminal.

Related

Android Studio Bumblebee 'pod install' command failed with an exception error=2

Yesterday I updated my Mac with Android Studio Bumblebee 2021.1.1 hoping that it would solve multiplatform issues I encounter.
Below some screenshots about my Mac and versions to be 100% clear:
Android Studio Bumblee About
macOs Monterey 12.2 iMac details
xCode 13.2.1 versions
Kotlin Multiplaform Mobile version
When I create a new KMM Application project I get errors. These are the steps (I can't post all screenshots): Basically accepting all default settings and followed by the final step:
New Project Step 3
After clicking finish on the New Project dialog Android Studio instantly shows an error in the bottom right corner: "Project wasn't configured"
Project wasn't configure error
After that I see these errors (text is below):
Android Studio build window output
'pod install' command failed with an exception: Cannot run program "pod" (in directory "/Users/johndoe/AndroidStudioProjects/MyApplication/iosApp"): error=2, No such file or directory
Possible reason: CocoaPods is not installed
Please check that CocoaPods v1.10 or above and cocoapods-generate plugin are installed.
To check CocoaPods version type 'pod --version' in the terminal
To install CocoaPods execute 'sudo gem install cocoapods'
To install cocoapod-generate execute 'sudo gem install cocoapods-generate'
The CocoaPods and cocoapod-generate are installed. When in the terminal window I can execute some commands succesfully (eg. pod --version (version 1.11.2) and pod install)
Android Studio Terminal output
Just to be clear: the directory and file it complains about do exist. I can navigate to it and run a succesful pod install and pod update command.
Is this a new bug and I'm just an early adaptor or is there a misconfiguration on my Mac? On my actual project I have the same error that compiled with the previous Android Studio version without any problems. I did have other challenges (see my different unanswered question).
There is an Android Studio bug report for this, including a workaround: https://issuetracker.google.com/issues/216364005#comment7
The root cause appear to be missing executable flag on Contents/bin/printenv file.
The workaround is to add missing flag: chmod +x /Applications/Android\ Studio.app/Contents/bin/printenv
If the above answer doesn't work for you, try checking $SHELL value in your IDE and in the terminal that you use. In my case they were different:
Android studio used zsh, which was unable to run pod command.
I personally use bash in the terminal. And I was able to run pod from it manually.
The solution was to switch to zsh and make pod work there by installing it with sudo gem install cocoapods.

Failed to create install session with 'cmd package install-create -r -t --full -S'

I am getting an error when trying to run any app through Android Studio after upgrade to 3.5.1.
Installation did not succeed.
The application could not be installed.
Installation failed due to: 'Failed to create install session with 'cmd package install-create -r -t --full -S 2123967' '
I have found similar posts in StackOverflow, and these error messages seem to provide additional information or recommendation. However, the error message I get does not provide any other information. I have tried all the solutions I can find, but was not successful. Here is what I tried.
Clean uninstall (deleted all related files/folders) and reinstall of Android Studio
All apps fail to launch, even a new empty project created with no changes
Disable Instant Run (Option does not exist any more) / Update drivers / Update SDK / Rebuild the project / Sync with Gradle / Run Invalidate caches/restart
Launching to physical android device yields same installation error message
Emulator itself launches and functions without any issues
For this workstation only, problem started when I upgraded Android Studio, but it was a big jump from prior version as I did not run it in this workstation for months and months
I am open to any suggestions or ways to get any additional information to troubleshoot.

Aptana Studio: Failed to correctly acquire installer error

I have download Aptana Studio 3.6.1 stand-alone version and attempted to install it. I got an error message stating:
"Failed to correctly acquire installer_nodejs_windows.msi file: CRC error."
I have now installed node v4.4.5 and it runs but I am still recieving the same error message when I attempt to install Aptana Studio.
Any ideas on what else I should try?
Install this: http://go.aptana.com/installer_nodejs_windows and then run the aptana installer again.
I also recommend not to use Aptana Studio's standalone version since they haven't updated it in a long time & I am not sure about the eclipse plugin either.
There are many other IDE options out there depending on what you want to work with.
:)

Getting Build Error for Cordova plugin integration on Visual Studio 2015 TACo

This is regarding Cordova based universal app development using Visual Studio 2015 - Tools for Apache Cordova (TACo).
Here is the sample code which I am trying to run: AngularJSToDo app. In this app, there is GeoLocation Cordova plugin is being used. In config.xml:
<vs:plugin name="org.apache.cordova.geolocation" version="0.3.10" />
While building application for Windows Phone Emulator 8.1, it throws an error after below process:
------ Adding plugin: cordova-plugin-geolocation#2.2.0
1> Calling plugman.fetch on plugin "cordova-plugin-geolocation#2.2.0"
1> Fetching plugin "cordova-plugin-geolocation#2.2.0" via plugin registry
1>MDAVSCLI : error : read ECONNRESET
This error appears after a long time fetching event. I have already tried installing particular plugin using "npm" command through command prompt, but VS build automatically clears older plugins and re-download and install latest ones.
In error section, it says
"read ECONNRESET"
Please guide me what should be done to resolve this error from Visual Studio build.
Reference: https://taco.visualstudio.com/en-us/docs/create-a-hosted-app/
Your plugin add is failing because Cordova has closed the Plugin registry and moved to npm. That means all Cordova versions less than 5.x which don't use npm will no longer be able to add plugins.
If you are not on the latest version of TACO, update to make sure that you are on a version that can add a plugin from npm
Then, instructions after updating:
Go to config.xml -> plugins
remove the camera plugin
Add it back in again from the core plugin list
Actually I just ran the sample myself, and had no problem getting it to load on the iOS simulator, but it pulled the plugin from npm and not the plugin registry.
This issue had been resolved by restarting node(npm) server. Below are the steps what I did.
Terminal - Ctrl+C to stop the npm server
Go to particular project folder, and add the plugins using below command
cordova plugin add <plugin-name>
Restart the node server: remotebuild
Hope this helps to others.

Visual Studio 2013 Cordova App Build Error - Freezes

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

Resources