Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error installing aglio on windows7 #201

Closed
ducin opened this issue Nov 26, 2015 · 14 comments
Closed

error installing aglio on windows7 #201

ducin opened this issue Nov 26, 2015 · 14 comments

Comments

@ducin
Copy link

ducin commented Nov 26, 2015

Hello All,

Although being a linux fan, my company's requirement is to work under windows. I'm trying to install agliounder windows and I'm failing with it:

$ npm install -g aglio
npm WARN optional dep failed, continuing [email protected]

> [email protected] install C:\Program Files\nodejs\node_modules\aglio\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild


C:\Program Files\nodejs\node_modules\aglio\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
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.  [C:\Program Files\nodejs\node_modules\aglio\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate\build\binding.sln]
gyp
> [email protected] install C:\Program Files\nodejs\node_modules\aglio\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild


C:\Program Files\nodejs\node_modules\aglio\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
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.  [C:\Program Files\nodejs\node_modules\aglio\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate\build\binding.sln]
gypnpm
> [email protected] install C:\Program Files\nodejs\node_modules\aglio\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild

 WARN optional dep failed, continuing [email protected]

C:\Program Files\nodejs\node_modules\aglio\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
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.  [C:\Program Files\nodejs\node_modules\aglio\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil\build\binding.sln]
gypnpm
> [email protected] install C:\Program Files\nodejs\node_modules\aglio\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild

 WARN optional dep failed, continuing [email protected]

C:\Program Files\nodejs\node_modules\aglio\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\bufferutil>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
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.  [C:\Program Files\nodejs\node_modules\aglio\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\bufferutil\build\binding.sln]
gypnpm
> [email protected] install C:\Program Files\nodejs\node_modules\aglio\node_modules\protagonist
> node-gyp rebuild

 WARN optional dep failed, continuing [email protected]
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.35","npm":"2.5.1"})
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.35","npm":"2.5.1"})
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.35","npm":"2.5.1"})

C:\Program Files\nodejs\node_modules\aglio\node_modules\protagonist>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Warning: Missing input files:
C:\Program Files\nodejs\node_modules\aglio\node_modules\protagonist\build\drafter\ext\snowcrash\..\..\..\..\drafter\ext\snowcrash\src\Version.h
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
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.  [C:\Program Files\nodejs\node_modules\aglio\node_modules\protagonist\build\binding.sln]
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.  [C:\Program Files\nodejs\node_modules\aglio\node_modules\protagonist\build\binding.sln]
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.  [C:\Program Files\nodejs\node_modules\aglio\node_modules\protagonist\build\binding.sln]
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.  [C:\Program Files\nodejs\node_modules\aglio\node_modules\protagonist\build\binding.sln]
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.  [C:\Program Files\nodejs\node_modules\aglio\node_modules\protagonist\build\binding.sln]
gypnpm
> [email protected] postinstall C:\Program Files\nodejs\node_modules\aglio\node_modules\aglio-theme-olio
> node scripts/setup-cache.js

 WARN optional dep failed, continuing [email protected]
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "aglio"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the protagonist package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls protagonist
npm ERR! There is likely additional logging output above.

I can see that agliois trying to use something like MSBUILD, which - as I found in www - is related to MS Visual Studio. My questions are:

  • am I doing something wrong? Maybe I need to install something prior to aglio?
  • is there any possibility to install aglio on windows without having MS Visual Studio?
@oxhacks
Copy link

oxhacks commented Nov 28, 2015

@ducin I was able to get past this using VS 2015. I did, however, have to start a new C++ project so that the appropriate tools were installed.

You can see more about this in node-gyp here: nodejs/node-gyp#694

@ducin
Copy link
Author

ducin commented Nov 28, 2015

@JayKwon thx for your input. The problem is, however, that I don't have VS and I'm not going to have it. In fact, it's the corporate institution I'm working for - they won't decide to buy MSVS only to get aglio up and running.

As far as I understand, aglio requires some API-blueprint component that needs to be compiled. Maybe there's an alternative compiler for windows that is not VS-dependent? Or maybe it could be just .exe or .msi instaled somehow?

@danielgtaylor
Copy link
Owner

@ducin really sorry to hear you are having issues. Please have a look at the new experimental pure Javascript version of Drafter:

https://github.com/apiaryio/drafter#drafterjs

That could be used instead of Protagonist in Aglio to parse the blueprints, which in turn means no more C++ to compile. In the future I hope to provide it as a fallback for those environments where compiling is difficult or impossible, but today you'll have to try and use it manually.

@swamikevala
Copy link

I'm also having the same problem with Windows installation. Could you provide step by step instructions how we can replace Protagonist with Drafter. Many Thanks!

@danielgtaylor
Copy link
Owner

@swamikevala I'm working on integrating it into Aglio over the next few weeks, so hopefully this should become a non-issue shortly.

@danielgtaylor
Copy link
Owner

It turns out this is a bit more complicated than I originally envisioned. The newer Drafter and Drafter.js generate their own JSON schemas that don't support all the features that the internal generator in Aglio does, and there is no way to tell when a schema is user-supplied or generated by Drafter unless I use source maps and Refract output. That requires changing all of Aglio over to the new Refract interface, which I started to do but will take a pretty significant effort. So my choices are to continue on that front, or lose some support for JSON example and schema generation from MSON input. Both are not ideal unfortunately...

@pavelkornev
Copy link

I have same issue on OSX 10.11, npm 3.5.2, node 5.3.0

I have reported in patagonist issue tracker, but it seems they have this issue since April 2014 - ALMOST 2 YEARS! Looks that they are not going to fix it or they simply don't know how.

@wuotr
Copy link

wuotr commented Jan 11, 2016

I have the same issue on OSX 10.11, npm v2.14.9 and node v0.12.9. :-S.

@pavelkornev
Copy link

@wuotr they have just released protagonist 1.2.5 which fixed bug on my system and aglio works like a sharm at this moment.

@wuotr
Copy link

wuotr commented Jan 12, 2016

Indeed... it is fixed on my system as well ;-). /cc @pavelkornev

@ducin
Copy link
Author

ducin commented Jan 12, 2016

How about windows users? Did anyone manage to make aglio up and running on any version of windows?

@grojguy
Copy link

grojguy commented Mar 11, 2016

Still broken for me on two different Windows 7 machines with node v4.4.0, npm 3.8.0, and protagonist 1.2.6

Help! Any ideas on a solution?

@grojguy
Copy link

grojguy commented Mar 12, 2016

FYI, I found a solution. See HERE.

I'd already done most of the steps, but slightly differently. I installed standard python from python.org, then installed Visual Studio 2015 Community, then added Visual C++ support from within VS2015 via File -> New -> Project, then
2016-03-12 04_28_39-new project

I think the key step is #5 ... "Set the npm config variable msvs_version to 2015: npm config -g set msvs_version 2015"

After this, aglio installed successfully, although I did get one warning as follows...

npm WARN optional Skipping failed optional dependency /aglio/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]

@reustonium
Copy link

Any hope for removing the protagonist (and thus the node-gyp) dependency? This has been a real deal breaker for us unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants