Errors trying to install aglio with node.js - windows

I am running Node.js 0.10.36 on my windows 7 machine. I also have grunt v0.4.5 and grunt-cli v0.1.13 installed. Python is 2.7.3 and Microsoft Visual studio is 2012.
I am trying to install aglio globally. The command I run is
npm install -g aglio
The error returned is as follows
I have been searching the internet for a good resolution to this, but I'm running out of things to try. The main suggestions were to install Python (which I've done) and to set Microsoft Visual Studio to 2012 (which I've also done).

Related

Visual Studio 2017 path issue while installing tensorflow in Anaconda

The exact error that I get when I try to run the environment after attempting to install Keras/ TensorFlow via the Anaconda prompt.
I am unable to install Keras or TensorFlow using Anaconda anymore. Even activating the environment results in a couple of errors as shown above. I have tried installing the Visual studio build tools 2019 (and 2017 using the community Visual Studio setup). Please advise on what I could try next to get rid of this error.
How did you install Anaconda and which OS are you using?
It seems Anaconda has not installed properly in your system. Uninstall and remove the previous Anaconda from your system and try reinstalling the Anaconda.
You can follow this reference to install Anaconda and Tensorflow in your system.
Check this link to install Visual studio.

How to install ZeroMQ on Windows 10?

I need to install ZeroMQ (libzmq) on windows 10 which is running on a VirtualBox. On their official website there are zip files for Visual Studio but on their github they mentioned that Windows10 is not supported.
I downloaded the zip file of "Visual Studio 15 2017 x64" and also installed cygwin and cmake but when I try to install it via cmake I get: The source directory does not appear to contain CMakeList.txt. This is true but there is a zmq.h inside that directory which I thought I should install via cmake. I also tried make exactly how I do it in linux with C files but that one also didn't work.
I have to mention that I don't want to use the ZMQ in Visual Studio. I need to connect a python program running in the host linux to Metatrader via ZMQ and the method that I am following (https://github.com/darwinex/DarwinexLabs/tree/master/tools/dwx_zeromq_connector/v2.0.1#installation) needs libzmq to be installed.
Can someone please help me with installing ZMQ on Windows10 either via cmake or Visual Studio?

NPM Runner works in VS 2017 but not in Vs 2019

I have a project that is using npm and webpack for our CSS and JavaScript bundling, which works just fine in VS 2017.
However, we are now using VS 2019 and after installing the extensions for both the NPM and Webpack Task Runners to be the same as the VS 2017 installation.
In VS 2019, I get the following error.
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
- webpack-cli (https://github.com/webpack/webpack-cli)
The original webpack full-featured CLI.
We will use "npm" to install the CLI via "npm install -D".
So, I opened VS 2017 with same project and it still operates fine, bundling CSS and JavaScript with no errors.
This was a known issue in the preview VS 2019 releases, my current versions in
Software versions:
- VS 2019 Version 16.2.3
- VS 2017 Version 15.9.15
- NPM Task Runner 1.4.90 (same for both)
- Webpack Task Runner 1.5.94 (same for both)
Does anyone know how to fix this, as currently I am having to open VS 2017 just to run the Task Runner?
UPDATE
Interesting side note. If I open up a command prompt and run
npm run build
from the project folder, it works, so is this just some fault within the task runner?
Latest version of Webpack requires you to install Webpack CLI on your own now.
I think somehow, VS 2017 has locked into a specific version of Webpack while VS 2019 has installed latest Webpack due to ^ version flag in your package.json.
To fix the issue, open up a terminal to the location of package.json and run:
npm install webpack-cli --save-dev
Then try again in VS 2019.
Hope this helps!

npm config set C compiler not to vcbuild.exe

When trying to npm install a node project in a Windows7 machine I am suffering from the inglorious error message:
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere.
Because I am under Cygwin I have already installed gcc ($ gcc -v and $ g++ -v respond in both Cygwin and cmd).
How can I tell npm to use gcc to compile instead of the vcbuild.exe that I don't have installed?
Note: I have already tried node-gyp and it did not work.
Note2: I know for sure the code runs without problems in linux.
Here is what sorted out my problem and the steps that I took to reach the long-awaited solution:
Installed Visual Studio Community but the VCBuild.exe was not there still.
Installed Microsoft Build Tools 2015 and tried to install the affected module as: npm install bcrypt --msvs_version=2015 but I got the following error:
error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".
My last shot was to install Visual Studio Express for Desktop and after npm install bcrypt --msvs_version=2015 I manage to npm install and npm start my app in Windows7!!
Lastly I uninstalled Visual Studio Community and Microsoft Build Tools 2015.
Note I had to remove the bcrypt module from the dependencies in package.json and install it as npm install bcrypt --msvs_version=2015 inside my app folder.

error MSB3411: Could not l oad the Visual C++ component "VCBuild.exe"

I have Visual Studio 2010 with SP1 and Windows sdk 7.1.
I also have VS2012 and Windows kit 8.
when i run Windows SDK 7.1 Command Prompt and run node-gyp build --msvs_version=2010 it gives me error:
error MSB3411: Could not load the Visual C++ component "VCBuild.exe".
If the component is not installed,
either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Fr
amework 3.5, or 2) install Microsoft Visual Studio 2008.
Is it trying to find VCBuild.exe.
I found that vcbuild has been replaced with msbuild.
Is it a valid error ?
I also found that in Windows 7, for .NET 3.5, you just need to turn it on from Control Panel. I have looked at other questions on stackoverflow like here and this.
But issue is that since vcbuild.exe does not exist in system with vs2010 then why does node-gyp is searching for it ? Or am i missing something ?
How do i resolve this error ?
The following has worked for me (as of June 2014), as described in here.
Install free Visual Studio Express 2013 for Windows (not VS Express 2013 for Web)
npm install --msvs_version=2013
Otherwise, I have spent a lot of time installing old Microsoft packages and patches, and it wasn't helpful.
Setting up the VS2010 and other applications as listed at node-gyp wiki solved the problems.
On Windows XP/Vista/7, node-gyp requires Python 2.7 and Visual Studio 2010
According to the readme file in Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1, to ensure that your system has a supported configuration,
uninstall the following products first (if you want to save tons of time)
and then reinstall them in the order listed: (you can uninstall in any order :P)
Visual Studio 2010
Windows SDK 7.1
Visual Studio 2010 SP1
Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1
On x64 environments, the last update in the list fixes errors about missing compilers and
error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found.
The answer to all your question lies here. Struggled a lot to find this. Finally got it working. =)
Just to save you time visiting the link here is what's useful in that link.
INSTRUCTIONS:
You can install with npm:
$ npm install -g node-gyp
You will also need to install:
On Unix:
python (v2.7 recommended, v3.x.x is not supported)
make A proper C/C++ compiler toolchain, like GCC
On Windows:
Python (v2.7.3 recommended, v3.x.x is not supported)
Windows XP/Vista/7: Microsoft Visual Studio C++ 2010 (Express version
works well)
For 64-bit builds of node and native modules you will also need the Windows > 7
64-bit SDK
If the install fails,
try uninstalling any C++ 2010 x64&x86 Redistributable that you have
installed first.
If you get errors that the 64-bit compilers are not installed you may
also need the compiler update for the Windows SDK 7.1
Windows 7/8:
Microsoft Visual Studio C++ 2012/13 for Windows Desktop (Express
version works well)
If you have multiple Python versions installed,
you can identify which Python version node-gyp uses by setting the
'--python' variable:
$ node-gyp --python /path/to/python2.7
If node-gyp is called by way of npm and you have multiple versions of
Python installed, then you can set npm's 'python' config key to the
appropriate value:
$ npm config set python /path/to/executable/python2.7
This can be fixed by installing all the required tools and configurations using Microsoft's windows-build-tools using npm install --global --production windows-build-tools from an elevated cmd (run as administrator).

Resources